Fix reset password

This commit is contained in:
calzoneman 2013-09-13 10:24:54 -05:00
parent 2b0e6a3dbf
commit 3f65a69f0e
4 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Fri Sep 13 10:10 2013 CDT
* www/reset.html: Fix data.js dependency
* lib/api.js: Fix ActionLog trying to record wrong data. How long has
this been broken?
* www/assets/js/acp.js: Prepend "/reset.html?" in case admins can't
remember what the URL is
Thu Sep 12 18:41 2013 CDT
* www/index.html: Fix index page not showing public channels

View file

@ -386,7 +386,7 @@ module.exports = function (Server) {
});
return;
}
ActionLog.record(ip, info[0], "password-recover-success");
ActionLog.record(ip, auth.name, "password-recover-success");
res.jsonp({
success: true,
name: auth.name,

View file

@ -407,7 +407,7 @@ function setupCallbacks() {
if(!data.success)
alert(data.error);
else
alert("Password reset successful. Reset hash: " + data.hash);
alert("Password reset successful. Reset hash: /reset.html?" + data.hash);
});
socket.on("acp-channeldata", function(data) {

View file

@ -60,6 +60,7 @@
<script src="./assets/js/bootstrap-modal.js"></script>
<!-- Mine -->
<script src="./assets/js/data.js"></script>
<script src="./assets/js/iourl.js"></script>
<script type="text/javascript">
var hash = false;