feat: add new pages for authentication (register, forgot password) and course browsing (discovery, course detail)
This commit is contained in:
parent
acff387a9b
commit
d4f84667dc
4 changed files with 39 additions and 8 deletions
|
|
@ -47,6 +47,7 @@ const handleInput = (val: string | number | null) => {
|
|||
}
|
||||
|
||||
const { requestPasswordReset } = useAuth()
|
||||
const $q = useQuasar()
|
||||
|
||||
const sendResetLink = async () => {
|
||||
if (!validate(forgotForm, forgotRules)) return
|
||||
|
|
@ -60,8 +61,13 @@ const sendResetLink = async () => {
|
|||
if (result.success) {
|
||||
forgotStep.value = 'success'
|
||||
} else {
|
||||
// Basic alert for now, could be improved with q-notify later
|
||||
alert(result.error || 'ไม่สามารถส่งลิงก์รีเซ็ตได้ กรุณาลองใหม่')
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
message: result.error || 'ไม่สามารถส่งลิงก์รีเซ็ตได้ กรุณาลองใหม่',
|
||||
position: 'top',
|
||||
timeout: 3000,
|
||||
actions: [{ icon: 'close', color: 'white' }]
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue