feat: add 2fa

This commit is contained in:
Xyphyn committed 2023-09-27 16:05:57 -07:00
1 parent 29fa924cb3
commit 1214b35b29
4 files changed
+97 -28

No files matched your search

@@ -26,15 +26,18 @@
let pfp = profileImage
? await uploadImage(profileImage[0], $profile.instance, $profile.jwt)
: undefined
const res = await getClient().saveUserSettings({
auth: $profile.jwt,
...formData,
avatar: pfp,
})
toast({
content: 'Saved your user settings.',
type: 'success',
})
if (res.verify_email_sent) {
toast({
content: 'A verification email was sent.',