if the user updates their email change the email uid mapping, added 500ms delay to the disconnect modal

v1.18.x
Baris Usakli 12 years ago
parent 12ff6bf1e1
commit c2c4c003ab

@ -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);

Loading…
Cancel
Save