From 04421b355eb93de2888f12801cc0ebe123414264 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 11 Oct 2012 17:02:15 +0200 Subject: authenticate returns the user, to_json includes M2. bumped version to 0.1.3 This way the controller can easily use @user = @session.authenticate; respond_with @sessoin; --- lib/srp/session.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/srp') diff --git a/lib/srp/session.rb b/lib/srp/session.rb index defbaa8..f4b7430 100644 --- a/lib/srp/session.rb +++ b/lib/srp/session.rb @@ -25,7 +25,8 @@ module SRP def authenticate(m) if(m == calculate_m(server_secret)) - return @m2 = calculate_m2 + @m2 = calculate_m2 + return @user end end -- cgit v1.2.3