mirror of
https://github.com/Nezumi-2711/foodify-frontend.git
synced 2026-09-22 13:38:44 +00:00
Deployment 1.5.2023
Fixing bugs
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Component, TemplateRef, ViewChild } from "@angular/core";
|
||||
import { AngularFireAuth } from "@angular/fire/compat/auth";
|
||||
import { AngularFireStorage } from "@angular/fire/compat/storage";
|
||||
import firebase from 'firebase/compat/app';
|
||||
import 'firebase/compat/auth';
|
||||
@@ -13,14 +12,12 @@ import { Validation } from "src/app/constants/Validation";
|
||||
import { AuthService } from "src/app/shared/service/auth.service";
|
||||
import { DistrictService } from "src/app/shared/service/district.service";
|
||||
import { FirebaseService } from "src/app/shared/service/firebase.service";
|
||||
import { ShopService } from "src/app/shared/service/shop.service";
|
||||
import { Address } from "src/app/shared/tables/address";
|
||||
import { District } from "src/app/shared/tables/district";
|
||||
import { Shop } from "src/app/shared/tables/shop";
|
||||
import { User } from "src/app/shared/tables/user";
|
||||
import { Ward } from "src/app/shared/tables/ward";
|
||||
import { environment } from "src/environments/environment";
|
||||
import { response } from "express";
|
||||
|
||||
@Component({
|
||||
selector: "app-signup",
|
||||
@@ -74,7 +71,6 @@ export class SignupComponent {
|
||||
|
||||
//Phonenumber
|
||||
isSend: boolean = false;
|
||||
isVerified: boolean = false;
|
||||
reCaptchaVerifier;
|
||||
verify;
|
||||
|
||||
@@ -359,9 +355,7 @@ export class SignupComponent {
|
||||
}
|
||||
);
|
||||
|
||||
firebase
|
||||
.auth()
|
||||
.signInWithPhoneNumber('+84 ' + this.userPhoneNumber.value, this.reCaptchaVerifier)
|
||||
firebase.auth().signInWithPhoneNumber('+84 ' + this.userPhoneNumber.value, this.reCaptchaVerifier)
|
||||
.then((confirmationResult) => {
|
||||
this.verify = confirmationResult.verificationId;
|
||||
})
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Ward -->
|
||||
<div class="location-ward" *ngIf="isHaveDistrict">
|
||||
<div class="location-ward">
|
||||
<select formControlName="ward" class="ward" id="ward-select">
|
||||
<option class="text-muted" value="">-- Chọn phường
|
||||
--</option>
|
||||
@@ -192,10 +192,9 @@
|
||||
<!-- <input formControlName="password" class="form-control" type="password" placeholder="Mật khẩu" /> -->
|
||||
<div class="form-control input-password-holder">
|
||||
<input formControlName="password" class="input-password"
|
||||
type="{{ showPassword ? 'text' : 'password' }}"
|
||||
placeholder="Mật khẩu" />
|
||||
type="{{ showPassword ? 'text' : 'password' }}" placeholder="Mật khẩu" />
|
||||
<span class="icon-holder-eye" (click)="showPassword = !showPassword">
|
||||
<i class="{{ showPassword ? 'fa fa-eye-slash' : 'fa fa-eye' }}"></i>
|
||||
<i class="{{ showPassword ? 'fa fa-eye-slash' : 'fa fa-eye' }}"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div *ngIf="userPassword?.invalid && (userPassword?.dirty || userPassword?.touched)"
|
||||
@@ -203,11 +202,11 @@
|
||||
<div *ngIf="userPassword?.errors?.['required']">Vui lòng không
|
||||
được bỏ trống mật khẩu</div>
|
||||
<div *ngIf="userPassword?.errors?.['pattern']">
|
||||
Mật khẩu phải chứa ít nhất 8 ký tự, trong đó gồm một ký tự số, một
|
||||
chữ hoa, một chữ thường và một ký
|
||||
tự đặc biệt.
|
||||
<br />
|
||||
Mật khẩu không được chứa khoảng trắng.
|
||||
Mật khẩu phải chứa ít nhất 8 ký tự, trong đó gồm một ký tự số, một
|
||||
chữ hoa, một chữ thường và một ký
|
||||
tự đặc biệt.
|
||||
<br />
|
||||
Mật khẩu không được chứa khoảng trắng.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -463,7 +462,8 @@
|
||||
|
||||
<ng-template #createFailure>
|
||||
<div class="modal-body text-center">
|
||||
<h5 class="text-dark font-weight-bold mb-4">{{ failureContent }} đã tồn tại. Vui lòng chọn {{ failureContent.toLowerCase() }} khác.</h5>
|
||||
<h5 class="text-dark font-weight-bold mb-4">{{ failureContent }} đã tồn tại. Vui lòng chọn {{
|
||||
failureContent.toLowerCase() }} khác.</h5>
|
||||
<button type="button" class="btn btn-primary" (click)="closeLayer1()">Tiếp tục
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user