notherbase-fs 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/controllers/user.js +0 -1
- package/package.json +1 -1
- package/views/account.ejs +1 -29
package/controllers/user.js
CHANGED
package/package.json
CHANGED
package/views/account.ejs
CHANGED
|
@@ -31,12 +31,7 @@
|
|
|
31
31
|
<h3>Password:</h3>
|
|
32
32
|
<div class="setting" id="password">
|
|
33
33
|
<p>*********</p>
|
|
34
|
-
<
|
|
35
|
-
</div>
|
|
36
|
-
<div class="edit invisible" id="password">
|
|
37
|
-
<input type="password" name="password">
|
|
38
|
-
<button onclick="accountServices.updatePassword()">Update</button>
|
|
39
|
-
<button onclick="accountServices.cancelPassword()">Cancel</button>
|
|
34
|
+
<p>Visit the Keeper to Change Your Password</p>
|
|
40
35
|
</div>
|
|
41
36
|
|
|
42
37
|
<p id="info"></p>
|
|
@@ -132,29 +127,6 @@
|
|
|
132
127
|
else this.$info.text("Server Error");
|
|
133
128
|
}
|
|
134
129
|
}
|
|
135
|
-
|
|
136
|
-
editPassword() {
|
|
137
|
-
this.$passwordSetting.addClass("invisible");
|
|
138
|
-
this.$passwordEdit.removeClass("invisible");
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
cancelPassword() {
|
|
142
|
-
this.$passwordSetting.removeClass("invisible");
|
|
143
|
-
this.$passwordEdit.addClass("invisible");
|
|
144
|
-
this.$passwordInput.val("");
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
async updatePassword() {
|
|
148
|
-
try {
|
|
149
|
-
await $.post("/user/password", { password: this.$passwordInput.val() }, (data) => {
|
|
150
|
-
this.cancelPassword();
|
|
151
|
-
this.$info.text("Password Updated!");
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
catch(err) {
|
|
155
|
-
this.$info.text(err);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
130
|
}
|
|
159
131
|
|
|
160
132
|
let accountServices = new AccountServices();
|