This commit is contained in:
Tiago Vasconcelos 2025-02-06 13:10:16 +00:00 committed by GitHub
parent 432b3a0fe0
commit 736699af94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,7 @@
{% extends "public.html" %} {% block page_container %}
<q-page-container>
<q-page class="q-px-md q-py-lg" :class="{'q-px-lg': $q.screen.gt.xs}">
{% block page %}
<div class="row q-col-gutter-md justify-center main">
<div class="col-10 col-md-8 col-lg-6 q-gutter-y-md">
<q-card>
@ -122,11 +125,16 @@
methods: {
async setPassword() {
try {
await LNbits.api.request('PUT', '/api/v1/auth/first_install', null, {
await LNbits.api.request(
'PUT',
'/api/v1/auth/first_install',
null,
{
username: this.loginData.username,
password: this.loginData.password,
password_repeat: this.loginData.passwordRepeat
})
}
)
window.location.href = '/admin'
} catch (e) {
@ -137,3 +145,6 @@
})
</script>
{% endblock %}
</q-page>
</q-page-container>
{% endblock %}