We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2372fbc commit bb3c58fCopy full SHA for bb3c58f
index.ts
@@ -35,12 +35,12 @@ export default class UserSoftDelete extends AdminForthPlugin {
35
body:{
36
allowedLogin: false,
37
redirectTo: '/login',
38
- },
39
- ok: true
+ }
40
};
41
if (adminUser.dbUser[this.options.activeFieldName] === false) {
42
return rejectResult;
43
}
+ return { body: {allowedLogin: true} };
44
45
);
46
@@ -55,6 +55,7 @@ export default class UserSoftDelete extends AdminForthPlugin {
55
56
57
58
+ return { allowed: true };
59
60
61
0 commit comments