mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-07-01 11:48:38 -04:00
Don't require UIDs to be 36 characters
The spec strongly recommends this, but doesn't strictly require it
This commit is contained in:
@ -47,11 +47,6 @@ func (r *SignonRequest) Valid() (bool, error) {
|
||||
if len(r.AppVer) < 1 || len(r.AppVer) > 4 {
|
||||
return false, errors.New("SONRQ>APPVER invalid length")
|
||||
}
|
||||
if ok, err := r.ClientUID.Valid(); !ok {
|
||||
if len(r.ClientUID) > 0 { // ClientUID isn't required
|
||||
return false, err
|
||||
}
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user