mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +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){
|
socket.on('disconnect', function(data){
|
||||||
|
setTimeout(function() {
|
||||||
$('#disconnect-modal').modal('show');
|
$('#disconnect-modal').modal('show');
|
||||||
$('#reload-button').on('click',function(){
|
$('#reload-button').on('click',function(){
|
||||||
$('#disconnect-modal').modal('hide');
|
$('#disconnect-modal').modal('hide');
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async: false
|
async: false
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ var config = require('../config.js'),
|
|||||||
|
|
||||||
if(key === 'email') {
|
if(key === 'email') {
|
||||||
User.setUserField(uid, 'gravatarpicture', User.createGravatarURLFromEmail(data[key]));
|
User.setUserField(uid, 'gravatarpicture', User.createGravatarURLFromEmail(data[key]));
|
||||||
|
RDB.set('email:' + email +':uid', uid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user