setup base jwt authentication

This commit is contained in:
2025-01-06 21:34:23 +01:00
parent e91d6540bf
commit cf15e3beb3
12 changed files with 425 additions and 6 deletions

10
app/templates/login.hbs Normal file
View File

@@ -0,0 +1,10 @@
<form {{on "submit" this.authenticate}}>
<label for="identification">Login</label>
<input id='identification' placeholder="Enter Login" value={{this.identification}} {{on "change" this.updateIdentification}}>
<label for="password">Password</label>
<input id='password' placeholder="Enter Password" value={{this.password}} {{on "change" this.updatePassword}}>
<button type="submit">Login</button>
{{#if this.errorMessage}}
<p>{{this.errorMessage}}</p>
{{/if}}
</form>