Skip to content

Commit 7f076fb

Browse files
Anthony KinseyAnthony Kinsey
authored andcommitted
refactor: wip implementing registration confirmation flow
1 parent 5e9e7f9 commit 7f076fb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/modals/auth/Register.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ export default {
143143
/* Template Methods */
144144
const register = () => {
145145
$auth.register(v.form.email.val, v.form.username.val, v.form.password.val)
146-
close()
146+
.then(confirm => {
147+
if (confirm) {
148+
console.log('TODO: Confirmation modal')
149+
}
150+
else close()
151+
})
147152
}
148153
149154
const signInWithGoogle = () => {

src/composables/stores/auth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export default {
8484
$alertStore.success(`Welcome ${user.username}, you have successfully registered!`)
8585
socketLogin(user)
8686
}
87+
else return true
8788
// TODO(akinsey): implement flow for when email confirmation is enabled
8889
// else {}
8990
}).catch(() => {})

0 commit comments

Comments
 (0)