From d21474a0290edab1c765741d484335d83f50be75 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 16 Oct 2012 17:24:12 +0200 Subject: use M2 as the key for the server auth --- src/srp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/srp.js') diff --git a/src/srp.js b/src/srp.js index b348e69..e66c2fa 100644 --- a/src/srp.js +++ b/src/srp.js @@ -35,7 +35,7 @@ function SRP(remote, session) // If an error occurs, raise it as an alert. function confirm_authentication(response) { - if (session.validate(response.M)) + if (session.validate(response.M2)) srp.success(); else srp.error("Server key does not match"); -- cgit v1.2.3