Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions tasty-fast-ui/src/app/pages/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,6 @@ export class LoginComponent {
}
});
}

/*
login() {
this.errorMsg = [];
this.authService.authenticate({
body: this.authRequest
}).subscribe({
next: (res) => {
this.tokenService.token = res.token as string;
this.router.navigate(['tasty-fast']);
},
error: (err) => {
console.log(err);
if (err.error.validationErrors) {
this.errorMsg = err.error.validationErrors;
} else {
this.errorMsg.push(err.error.errorMsg);
}
}
});
}

*/
register() {
this.router.navigate(['register'])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@RequiredArgsConstructor
@Tag(name = "Authentication")
public class AuthenticationController {

private final AuthenticationService authenticationService;

@PostMapping("/register")
Expand Down
Loading