Revamp the UI on Login / Register page (#2919)

This commit is contained in:
Tiago Vasconcelos
2025-02-07 09:43:19 +02:00
committed by GitHub
parent 736699af94
commit 9a1d707f54
13 changed files with 1125 additions and 667 deletions
+7 -8
View File
@@ -9,7 +9,9 @@ window.app = Vue.createApp({
description: ''
},
isUserAuthorized: false,
authAction: 'login',
authAction: Quasar.LocalStorage.getItem('lnbits.disclaimerShown')
? 'login'
: 'register',
authMethod: 'username-password',
usr: '',
username: '',
@@ -18,7 +20,9 @@ window.app = Vue.createApp({
password: '',
passwordRepeat: '',
walletName: '',
signup: false
signup: false,
slide: 1,
autoplay: true
}
},
computed: {
@@ -170,15 +174,10 @@ window.app = Vue.createApp({
message: 'Processing...',
icon: null
})
},
validateUsername(val) {
const usernameRegex = new RegExp(
'^(?=[a-zA-Z0-9._]{2,20}$)(?!.*[_.]{2})[^_.].*[^_.]$'
)
return usernameRegex.test(val)
}
},
created() {
console.log(Quasar.LocalStorage.getItem('lnbits.disclaimerShown'))
this.description = SITE_DESCRIPTION
this.isUserAuthorized = !!this.$q.cookies.get('is_lnbits_user_authorized')
if (this.isUserAuthorized) {