Add password change (#88)
This commit is contained in:
parent
27c1f78dbd
commit
62e80cec63
7 changed files with 98 additions and 2 deletions
|
|
@ -1002,6 +1002,16 @@ function showLoginFrame() {
|
|||
modal.modal("hide");
|
||||
}
|
||||
}
|
||||
else if(e.data.substring(0, e.data.indexOf(":")) == "cytube-changepass") {
|
||||
var data = e.data.substring(e.data.indexOf(":")+1);
|
||||
data = JSON.parse(data);
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
}
|
||||
else if(data.success) {
|
||||
alert("Password changed");
|
||||
}
|
||||
}
|
||||
}
|
||||
if(window.addEventListener) {
|
||||
window.addEventListener("message", respond, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue