adapt-authoring-auth-local 1.3.0 → 1.3.1
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/lib/LocalAuthModule.js +1 -1
- package/package.json +1 -1
package/lib/LocalAuthModule.js
CHANGED
|
@@ -151,7 +151,7 @@ class LocalAuthModule extends AbstractAuthModule {
|
|
|
151
151
|
async setUserEnabled (user, isEnabled) {
|
|
152
152
|
await super.setUserEnabled(user, isEnabled)
|
|
153
153
|
await this.users.update({ _id: user._id }, {
|
|
154
|
-
failedLoginAttempts: isEnabled ? 0 : user.
|
|
154
|
+
failedLoginAttempts: isEnabled ? 0 : user.failedLoginAttempts,
|
|
155
155
|
isPermLocked: !isEnabled,
|
|
156
156
|
isTempLocked: !isEnabled
|
|
157
157
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-auth-local",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Module which implements username/password (local) authentication",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-auth-local",
|
|
6
6
|
"license": "GPL-3.0",
|