Photo: Victoria Shekel in Istanbul

Victoria Shekel

Frontend developer

Beginner frontend developer. I am inspired by apple.com, kinopoisk.ru, GetBrains.

Languages

  • Russian (native)
  • English (pre-intermediate)
  registration(event: Event): void | boolean {
    if (this.psw !== this.pswRepeat) {
      this.messageService.add({
            severity: 'error',
            summary: 'Пароли не совпадают'
      });
   
      return false;
    }
   
    const userObject: IUser = {
      login: this.login,
      psw: this.psw,
      cardNumber: this.cardNumber,
      email: this.email,
    }
   
    if (!this.authService.isUserExists(userObject)) {
      this.authService.setUser(userObject);
   
      this.messageService.add({
            severity: 'success',
            summary:'Регистрация прошла успешно'
       });