Fix login with oauth (#2935)

This commit is contained in:
Tiago Vasconcelos
2025-02-07 16:48:22 +02:00
committed by GitHub
parent a8809ed5a4
commit 503a599341
8 changed files with 209 additions and 197 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -58,6 +58,8 @@ window.localisation.en = {
currency: 'Currency',
update_currency: 'Update currency',
press_to_claim: 'Press to claim bitcoin',
claim_desc:
'It seems you have a claimable amount of bitcoin but you dont have a wallet yet. Press the button below to claim it. This will create a new wallet for you.',
donate: 'Donate',
view_github: 'View on GitHub',
voidwallet_active: 'VoidWallet is active! Payments disabled',
@@ -270,7 +272,8 @@ window.localisation.en = {
login_to_account: 'Login to your account',
create_account: 'Create account',
account_settings: 'Account Settings',
signin_with_oauth: 'or Login with',
signin_with_oauth: 'Login with',
signin_with_oauth_or: 'or Login with',
signin_with_nostr: 'Continue with Nostr',
signin_with_google: 'Sign in with Google',
signin_with_github: 'Sign in with GitHub',
+2 -4
View File
@@ -523,7 +523,7 @@ window.app.component('user-id-only', {
this.$emit('show-register', method)
},
loginUsr() {
this.$emit('update:user', this.user)
this.$emit('update:usr', this.user)
this.$emit('login-usr')
},
createWallet() {
@@ -599,9 +599,7 @@ window.app.component('username-password', {
return this.oauth.some(m => this.authMethods.includes(m))
}
},
created() {
console.log('username-password created', this.passwordRepeat)
}
created() {}
})
window.app.component('separator-text', {
+1 -4
View File
@@ -20,9 +20,7 @@ window.app = Vue.createApp({
password: '',
passwordRepeat: '',
walletName: '',
signup: false,
slide: 1,
autoplay: true
signup: false
}
},
computed: {
@@ -177,7 +175,6 @@ window.app = Vue.createApp({
}
},
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) {