Skip to content
Snippets Groups Projects
Commit 56c3f1f5 authored by Maksim's avatar Maksim
Browse files

update translate

parent 584dfe1a
No related branches found
No related tags found
No related merge requests found
......@@ -8,26 +8,36 @@
<form v-if="loginMethod == 'password'" v-on:submit.prevent='submit(user)' class='login-form'>
<div class='form-group'>
<label for='username'>{{$t('login.username')}}</label>
<input :disabled="loggingIn" v-model='user.username' class='form-control' id='username' v-bind:placeholder="$t('login.placeholder')">
<input :disabled="loggingIn"
v-model='user.username'
class='form-control' id='username'
:placeholder="$t('login.placeholder')">
</div>
<div class='form-group'>
<label for='password'>{{$t('login.password')}}</label>
<input :disabled="loggingIn" v-model='user.password' class='form-control' id='password' type='password'>
<input :disabled="loggingIn"
v-model='user.password'
class='form-control' id='password' type='password'>
</div>
<div class='form-group'>
<input type="checkbox" id="use2fa" v-model="use2fa">
<label for='use2fa'>
Use 2-factor authentication
</label>
<label for='use2fa'>{{$t('login.use2fa')}}</label>
<input
v-show="use2fa" v-model="otpToken"
autocomplete="off" type="text"
placeholder="Two-Factor Authentication Token">
:placeholder="$t('login.2fa-placeholder')">
</div>
<div class='form-group'>
<div class='login-bottom'>
<div><router-link :to="{name: 'registration'}" v-if='registrationOpen' class='register'>{{$t('login.register')}}</router-link></div>
<button :disabled="loggingIn" type='submit' class='btn btn-default'>{{$t('login.login')}}</button>
<div>
<router-link
:to="{name: 'registration'}"
v-if='registrationOpen'
class='register'>{{$t('login.register')}}</router-link>
</div>
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
{{$t('login.login')}}
</button>
</div>
</div>
</form>
......
......@@ -30,7 +30,9 @@
"placeholder": "e.g. lain",
"register": "Register",
"username": "Username",
"hint": "Log in to join the discussion"
"hint": "Log in to join the discussion",
"use2fa": "Use 2-factor authentication",
"2fa-placeholder": "Two-Factor Authentication Token"
},
"nav": {
"about": "About",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment