Skip to content
Snippets Groups Projects
Commit 7063ec34 authored by Bjoern Kimminich's avatar Bjoern Kimminich
Browse files

Fix typo in match() function name and clean up code

parent e90fb976
No related branches found
No related tags found
No related merge requests found
...@@ -80,9 +80,6 @@ export class LoginComponent implements OnInit { ...@@ -80,9 +80,6 @@ export class LoginComponent implements OnInit {
this.router.navigate(['/search']) this.router.navigate(['/search'])
}, (error) => { }, (error) => {
console.log(error) console.log(error)
if (this.user.email && this.user.email.matches(/support@.*/)) {
console.log('@echipa de suport: Secretul nostru comun este încă Caoimhe cu parola de master gol!')
}
localStorage.removeItem('token') localStorage.removeItem('token')
this.cookieService.remove('token', { domain: document.domain }) this.cookieService.remove('token', { domain: document.domain })
sessionStorage.removeItem('bid') sessionStorage.removeItem('bid')
...@@ -100,6 +97,9 @@ export class LoginComponent implements OnInit { ...@@ -100,6 +97,9 @@ export class LoginComponent implements OnInit {
localStorage.removeItem('email') localStorage.removeItem('email')
} }
if (this.error && this.user.email && this.user.email.match(/support@.*/)) {
console.log('@echipa de suport: Secretul nostru comun este încă Caoimhe cu parola de master gol!')
}
} }
googleLogin () { googleLogin () {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment