Work on login form stuff

This commit is contained in:
Melody Becker 2024-10-28 08:36:11 +01:00
parent 53e6418e89
commit 952949b609
11 changed files with 127 additions and 22 deletions

View file

@ -0,0 +1,24 @@
import { action } from '@ember/object'
import Component from '@glimmer/component'
import { tracked } from '@glimmer/tracking'
export interface AuthLoginSignature {
// The arguments accepted by the component
Args: {}
// Any blocks yielded by the component
Blocks: {
default: []
}
// The element to which `...attributes` is applied in the component template
Element: null
}
export default class AuthLogin extends Component<AuthLoginSignature> {
@tracked username = ''
@action onLoginStart() {
console.log('Starting login for username ' + this.username)
// Check if username is approved for login
// If it is, continue with login
}
}