feat(auth): admin user updates added
if a password change happens then an email will be sent to the user.
This commit is contained in:
13
frontend/src/utils/formStuff/options/userformOptions.tsx
Normal file
13
frontend/src/utils/formStuff/options/userformOptions.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { formOptions } from "@tanstack/react-form";
|
||||
|
||||
export const userFormOptions = (user: any) => {
|
||||
return formOptions({
|
||||
defaultValues: {
|
||||
username: user.username,
|
||||
password: "",
|
||||
email: user.email,
|
||||
//hobbies: [],
|
||||
},
|
||||
// } as Person,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user