summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/srp.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/srp.js b/src/srp.js
index 7060598..6d1e8c1 100644
--- a/src/srp.js
+++ b/src/srp.js
@@ -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();
}
};