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.
@@ -1,7 +1,6 @@
1
1
  const express = require("express");
2
2
  const router = express.Router();
3
3
  const bcrypt = require("bcrypt");
4
- const nodemailer = require("nodemailer");
5
4
 
6
5
  // Import my Data
7
6
  const { user, inventory, sendMail } = require("../models");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- <button onclick="accountServices.editPassword()">Change Password</button>
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();