@modernman00/shared-js-lib 1.2.24 → 1.2.26
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/AcctMgt/changePassword.js +4 -4
- package/AcctMgt/code.js +2 -2
- package/AcctMgt/forgot.js +2 -2
- package/AcctMgt/login.js +4 -4
- package/config/version.php +1 -1
- package/package.json +1 -1
|
@@ -43,20 +43,20 @@ import { matchInput } from '../general.js';
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
export const setupPasswordChange = ({
|
|
46
|
+
formId = 'changePassword',
|
|
46
47
|
buttonId = 'button',
|
|
47
48
|
passwordId = 'password_id',
|
|
48
49
|
confirmId = 'confirm_password_id',
|
|
49
50
|
showToggleId = 'showPassword_id',
|
|
50
51
|
errorId = 'confirm_password_error',
|
|
51
52
|
helpId = 'password_help',
|
|
52
|
-
route
|
|
53
|
-
redirect
|
|
53
|
+
route,
|
|
54
|
+
redirect,
|
|
54
55
|
theme = 'bulma',
|
|
55
56
|
maxLength = 50
|
|
56
57
|
} = {}) => {
|
|
57
58
|
// Accessibility & input attributes
|
|
58
59
|
const passwordInput = id(passwordId);
|
|
59
|
-
const confirmInput = id(confirmId);
|
|
60
60
|
const showToggle = id(showToggleId);
|
|
61
61
|
const helperText = id(helpId);
|
|
62
62
|
|
|
@@ -77,7 +77,7 @@ export const setupPasswordChange = ({
|
|
|
77
77
|
// Submission handler
|
|
78
78
|
const handleSubmit = (e) => {
|
|
79
79
|
e.preventDefault();
|
|
80
|
-
loginSubmission(
|
|
80
|
+
loginSubmission(formId, route, redirect, theme, lengthLimit);
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
// Bind events
|
package/AcctMgt/code.js
CHANGED
package/AcctMgt/forgot.js
CHANGED
package/AcctMgt/login.js
CHANGED
|
@@ -37,10 +37,10 @@ import { showPassword } from './loginUtility.js';
|
|
|
37
37
|
*/
|
|
38
38
|
export function createAdminLoginHandler({
|
|
39
39
|
formId,
|
|
40
|
-
emailId,
|
|
41
|
-
passwordId,
|
|
42
|
-
buttonId,
|
|
43
|
-
showToggleId,
|
|
40
|
+
emailId = 'email_id',
|
|
41
|
+
passwordId = 'password_id',
|
|
42
|
+
buttonId = 'button',
|
|
43
|
+
showToggleId = 'showPassword_id',
|
|
44
44
|
route,
|
|
45
45
|
redirect,
|
|
46
46
|
theme = 'bootstrap',
|
package/config/version.php
CHANGED
package/package.json
CHANGED