diff options
| author | Azul <azul@riseup.net> | 2012-10-19 18:01:04 +0200 | 
|---|---|---|
| committer | Azul <azul@riseup.net> | 2012-10-19 18:01:04 +0200 | 
| commit | 23350b54ec2723e1b2e333626567c9fe9d1e2644 (patch) | |
| tree | 6cd15ab0d4e3c42f313f8ed207cda718797ec028 /src | |
| parent | 72c0c1fc64e3497a25bdac933946773c29f235b5 (diff) | |
don't expect create to return an ok
* it returns the user
* it will return errors if sth. goes wrong.
Diffstat (limited to 'src')
| -rw-r--r-- | src/srp.js | 6 | 
1 files changed, 4 insertions, 2 deletions
| @@ -53,8 +53,10 @@ function SRP(remote, session)    // The user has been registered successfully, now login    this.registered_user = function(response)    { -    if(response.ok) -    { +    if(response.errors) { +      srp.error(response.errors) +    } +    else {        srp.identify();      }    };   | 
