Updated redis client. Soft deletes reset username.
This commit is contained in:
1 parent
37b94e5b96
commit
e92d958b24
6 files changed
+11
-37
No files matched your search
@@ -51,11 +51,11 @@ export default async (
|
||||
data.password = hashPassword(password);
|
||||
}
|
||||
|
||||
// Only admin can change these fields
|
||||
if (role && isAdmin) {
|
||||
data.role = role;
|
||||
}
|
||||
|
||||
// Only admin can change these fields
|
||||
if (username && isAdmin) {
|
||||
data.username = username;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user