mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: simplified logic
This commit is contained in:
@@ -107,14 +107,9 @@ export const userServiceFactory = ({
|
||||
});
|
||||
|
||||
await userDAL.updateById(user.id, {
|
||||
isEmailVerified: true
|
||||
isEmailVerified: true,
|
||||
username: usersByusername.length === 1 && user.email ? user.email.toLowerCase() : undefined
|
||||
});
|
||||
|
||||
if (usersByusername.length === 1 && user) {
|
||||
await userDAL.updateById(user.id, {
|
||||
username: user.email.toLowerCase()
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const updateUserMfa = async ({ userId, isMfaEnabled, selectedMfaMethod }: TUpdateUserMfaDTO) => {
|
||||
|
||||
Reference in New Issue
Block a user