--- a/plugins/supported/userident/index.js
+++ b/plugins/supported/userident/index.js
@@ -264,17 +264,17 @@ exports.loginController.prototype = {
notifier.notify({
plugin: 'userident',
notification: 'loginerror',
title: 'Reset Password',
body: 'The typed passwords do not match.'
});
} else {
var data = searchQuery.pwchange.split(';');
- var usename = data[0];
+ var username = data[0];
var hash = data[1];
exports.changePassword(
username, password, hash
).then(function() {
// Password sucessfully changed. Log the user in.
self._doLogin(pr, username, password);
}, function(error) {