From 5331621f34533d06787a8d8b31caa0da0a71ae13 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 5 May 2014 15:46:48 +0400 Subject: [PATCH] Update wp-auth.js Restore the "@" character if the email is used as an login --- wp-auth.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-auth.js b/wp-auth.js index 05a5adc..bcc5ef0 100644 --- a/wp-auth.js +++ b/wp-auth.js @@ -152,6 +152,8 @@ Invalid_Auth.prototype.on = function( key, callback ) { function Valid_Auth( data, auth ) { var self = this, user_login = data[0], expiration = data[1], hash = data[2]; + + user_login = user_login.replace('%40', '@'); if ( user_login in auth.known_hashes_timeout && auth.known_hashes_timeout[user_login] < +new Date ) { delete auth.known_hashes[user_login];