moved and reformat with tab SettingsView and updated view s with amaury's forms

This commit is contained in:
Clément Le Bihan
2023-04-05 00:37:45 +02:00
parent 46f4ac82a8
commit 4e26925113
4 changed files with 248 additions and 371 deletions

View File

@@ -419,12 +419,11 @@ export default class API {
];
}
public static async updateUserEmail(oldEmail: string, newEmail: string): Promise<User> {
public static async updateUserEmail(newEmail: string): Promise<User> {
const rep = await API.fetch({
route: "/auth/me",
method: "PUT",
body: {
oldEmail: oldEmail,
email: newEmail,
},
});