-commit
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 6m18s

This commit is contained in:
x2Skyz
2025-11-23 12:23:28 +07:00
parent 3ebfd37400
commit 809e2e16bb
8 changed files with 272 additions and 65 deletions

View File

@@ -82,26 +82,31 @@ export class LoginContentComponent implements OnInit {
onRegisterSubmit(value: any){
const uri = '/api/login/register';
const request = {
username: value.username,
firstname: value.username,
lastname: value.userlastname,
password: value.password,
email: value.email
email: value.email,
organization: 'accpj'
};
this.generalService.postRequest(uri, request).subscribe({
next: (result: any) => {
if (result.code === '200') { }
if (result.code === '200') {
this.generalService.trowApi(result);
}
else {
this.generalService.trowApi(result);
}
},
error: (error: any) => {
this.generalService.trowApi(error);
},
complete: () => {
this.router.navigate(['/login']);
}
});
}
onOtpSendSubmit(value: any){
let uri = '/api/login/otp/send';
let request = {