mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
pull from developer-prod made
This commit is contained in:
@@ -112,8 +112,15 @@ export class LoginPage implements OnInit {
|
||||
if (this.validateUsername()) {
|
||||
if (this.validatePassword()) {
|
||||
|
||||
let newUserName = ""
|
||||
if (this.usernameAsDomain(environment.domain, this.username.trim())) {
|
||||
newUserName = this.username.trim();
|
||||
} else {
|
||||
newUserName = this.username.trim() + "@" + environment.domain;
|
||||
}
|
||||
|
||||
this.userattempt = {
|
||||
username: this.username.trim(),
|
||||
username: newUserName.trim(),
|
||||
password: this.password.trim(),
|
||||
domainName: environment.domain,
|
||||
BasicAuthKey: ""
|
||||
@@ -233,4 +240,8 @@ export class LoginPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
usernameAsDomain(substring, mainString) {
|
||||
return mainString.includes(substring);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user