Work on login form stuff
This commit is contained in:
parent
53e6418e89
commit
952949b609
11 changed files with 127 additions and 22 deletions
24
frontend-reactive/app/components/auth/login.ts
Normal file
24
frontend-reactive/app/components/auth/login.ts
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue