Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
432efa3d
Verified
Commit
432efa3d
authored
May 18, 2021
by
les
Browse files
minor
parent
1aedfb3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
pages/Login.vue
View file @
432efa3d
<
template
lang=
'pug'
>
v-row.mt-5(align='center' justify='center')
v-col(cols='12' md="6" lg="5" xl="4")
v-form(v-model='valid' ref='form' lazy-validation @submit.prevent='submit')
v-card
v-card-title
{{
$t
(
'
common.login
'
)
}}
v-card-subtitle(v-text="$t('login.description')")
v-container
v-row.mt-5(align='center' justify='center')
v-col(cols='12' md="6" lg="5" xl="4")
v-form(v-model='valid' ref='form' lazy-validation @submit.prevent='submit')
v-card
v-card-title
{{
$t
(
'
common.login
'
)
}}
v-card-subtitle(v-text="$t('login.description')")
v-card-text
v-text-field(v-model='email' type='email'
validate-on-blur
:rules='$validators.email' autofocus
:placeholder='$t("common.email")'
ref='email')
v-card-text
v-text-field(v-model='email' type='email'
validate-on-blur
:rules='$validators.email' autofocus
:placeholder='$t("common.email")'
ref='email')
v-text-field(v-model='password'
:rules='$validators.password'
type='password'
:placeholder='$t("common.password")')
v-text-field(v-model='password'
:rules='$validators.password'
type='password'
:placeholder='$t("common.password")')
v-card-actions
v-btn(text
tabindex="1"
@click='forgot' small)
{{
$t
(
'
login.forgot_password
'
)
}}
v-card-actions
v-btn(text
tabindex="1"
@click='forgot' small)
{{
$t
(
'
login.forgot_password
'
)
}}
v-card-actions
v-spacer
v-card-actions
v-spacer
v-btn(v-if='settings.allow_registration'
to='/register'
text
color='orange')
{{
$t
(
'
login.not_registered
'
)
}}
v-btn(v-if='settings.allow_registration'
to='/register'
text
color='orange')
{{
$t
(
'
login.not_registered
'
)
}}
v-btn(color='success'
type='submit'
:disabled='!valid || loading' :loading='loading')
{{
$t
(
'
common.login
'
)
}}
v-btn(color='success'
type='submit'
:disabled='!valid || loading' :loading='loading')
{{
$t
(
'
common.login
'
)
}}
</
template
>
...
...
pages/Register.vue
View file @
432efa3d
<
template
lang=
'pug'
>
v-container
v-row.mt-5(align='center' justify='center')
v-col(cols='12' md="6" lg="5" xl="4")
...
...
server/api/controller/settings.js
View file @
432efa3d
...
...
@@ -30,6 +30,7 @@ const defaultSettings = {
'
theme.is_dark
'
:
true
,
'
theme.primary
'
:
'
#FF4500
'
,
footerLinks
:
[
{
href
:
'
/
'
,
label
:
'
home
'
},
{
href
:
'
/about
'
,
label
:
'
about
'
}
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment