mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
if the user updates their email change the email uid mapping, added 500ms delay to the disconnect modal
This commit is contained in:
@@ -33,11 +33,13 @@ var socket,
|
||||
});
|
||||
|
||||
socket.on('disconnect', function(data){
|
||||
$('#disconnect-modal').modal('show');
|
||||
$('#reload-button').on('click',function(){
|
||||
$('#disconnect-modal').modal('hide');
|
||||
window.location.reload();
|
||||
});
|
||||
setTimeout(function() {
|
||||
$('#disconnect-modal').modal('show');
|
||||
$('#reload-button').on('click',function(){
|
||||
$('#disconnect-modal').modal('hide');
|
||||
window.location.reload();
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
async: false
|
||||
|
||||
@@ -90,6 +90,7 @@ var config = require('../config.js'),
|
||||
|
||||
if(key === 'email') {
|
||||
User.setUserField(uid, 'gravatarpicture', User.createGravatarURLFromEmail(data[key]));
|
||||
RDB.set('email:' + email +':uid', uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -276,7 +277,7 @@ var config = require('../config.js'),
|
||||
});
|
||||
|
||||
RDB.set('username:' + username + ':uid', uid);
|
||||
RDB.set('email:' + email +':uid', uid);
|
||||
RDB.set('email:' + email +':uid', uid);
|
||||
|
||||
if(email)
|
||||
User.sendConfirmationEmail(email);
|
||||
|
||||
Reference in New Issue
Block a user