Compare commits

..

1 Commits

Author SHA1 Message Date
kolaente e108b3a2fe
feat: add remember me style login 2022-01-08 18:11:32 +01:00
4 changed files with 14 additions and 4 deletions

View File

@ -128,7 +128,7 @@ describe('Task', () => {
cy.visit(`/tasks/${tasks[0].id}`)
cy.get('.task-view .action-buttons .button')
.contains('Mark task done!')
.contains('Done!')
.click()
cy.get('.task-view .heading .is-done')

View File

@ -50,7 +50,8 @@
"authenticating": "Authenticating…",
"openIdStateError": "State does not match, refusing to continue!",
"openIdGeneralError": "An error occured while authenticating against the third party.",
"logout": "Logout"
"logout": "Logout",
"remember": "Stay logged in"
},
"settings": {
"title": "Settings",
@ -545,7 +546,7 @@
"chooseStartDate": "Click here to set a start date",
"chooseEndDate": "Click here to set an end date",
"move": "Move task to a different list",
"done": "Mark task done!",
"done": "Done!",
"undone": "Mark as undone",
"created": "Created {0} by {1}",
"updated": "Updated {0}",
@ -781,7 +782,7 @@
"then": "then",
"task": {
"title": "Task Page",
"done": "Done",
"done": "Mark a task as done",
"assign": "Assign to a user",
"labels": "Add labels to this task",
"dueDate": "Change the due date of this task",

View File

@ -93,6 +93,7 @@ export default {
const data = {
username: credentials.username,
password: credentials.password,
long_token: credentials.longToken,
}
if (credentials.totpPasscode) {

View File

@ -55,6 +55,12 @@
/>
</div>
</div>
<div class="field">
<label class="label">
<input type="checkbox" v-model="rememberMe" class="mr-1"/>
{{ $t('user.auth.remember') }}
</label>
</div>
<div class="field is-grouped login-buttons">
<div class="control is-expanded">
@ -114,6 +120,7 @@ export default {
return {
confirmedEmailSuccess: false,
errorMessage: '',
rememberMe: false,
}
},
beforeMount() {
@ -186,6 +193,7 @@ export default {
const credentials = {
username: this.$refs.username.value,
password: this.$refs.password.value,
longToken: this.rememberMe,
}
if (this.needsTotpPasscode) {