ionic-vhframeworks 10.5.7 → 10.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -848,12 +848,13 @@ export declare class VhAuth {
|
|
|
848
848
|
signUpOwner_Sales(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
|
|
849
849
|
private tam_email;
|
|
850
850
|
private tam_pw;
|
|
851
|
+
private tam_info;
|
|
851
852
|
/**
|
|
852
853
|
* @example:
|
|
853
854
|
* if (this.platform.is('ios')) {
|
|
854
855
|
//Đăng ký bình thường như cách cũ
|
|
855
856
|
}else{
|
|
856
|
-
this.vhAuth.
|
|
857
|
+
this.vhAuth.verificationSignup_byOTP_Sales365('huyleduc92@gmail.com', 'Vh123456', '+84909925359',{})
|
|
857
858
|
.then((rsp:any)=>{
|
|
858
859
|
if(rsp.vcode === 0){
|
|
859
860
|
//Nếu số đt và email trước đây chưa được đăng ký sử dụng thì bây giờ có thể đăng ký
|
|
@@ -861,11 +862,11 @@ export declare class VhAuth {
|
|
|
861
862
|
const verificationCode = window.prompt(
|
|
862
863
|
'Please enter the verification code that was sent to your mobile device.',
|
|
863
864
|
)!;
|
|
864
|
-
this.vhAuth.
|
|
865
|
+
this.vhAuth.verificationSignup_byOTP_Sales365(verificationCode)
|
|
865
866
|
.then((owner)=>{
|
|
866
867
|
if(owner){
|
|
867
868
|
//Thông báo người dùng đã đăng ký thành công và trở về lại trang đăng nhập
|
|
868
|
-
console.log('
|
|
869
|
+
console.log('verificationSignup_byOTP_Sales365', owner);
|
|
869
870
|
}else{
|
|
870
871
|
//thông báo người dùng đã nhập sai mã otp
|
|
871
872
|
}
|
|
@@ -893,13 +894,13 @@ export declare class VhAuth {
|
|
|
893
894
|
* vcode === 3: Hiện thị ra thông báo cho người dùng biết rằng số điện thoại của họ nhập vào không đúng với định dạng của nhà mạng
|
|
894
895
|
* @notice : nhớ kiểm tra email đúng cú pháp và chuỗi trước @gmail.com có chiều dài lớn hơn bằng 6 thì nút "Đồng ý" mới sáng lên
|
|
895
896
|
*/
|
|
896
|
-
|
|
897
|
+
signUpOwner_byOTP_Sales365(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
|
|
897
898
|
/**
|
|
898
899
|
* @example:
|
|
899
|
-
* this.vhAuth.
|
|
900
|
+
* this.vhAuth.verificationSignup_byOTP_Sales365(verificationCode)
|
|
900
901
|
.then((owner)=>{
|
|
901
902
|
if(owner){
|
|
902
|
-
console.log('
|
|
903
|
+
console.log('verificationSignup_byOTP_Sales365', owner);
|
|
903
904
|
}else{
|
|
904
905
|
//thông báo người dùng đã nhập sai mã otp
|
|
905
906
|
}
|
|
@@ -909,7 +910,7 @@ export declare class VhAuth {
|
|
|
909
910
|
* @param verificationCode: mã otp được viethas gửi đến số điện thoại của bạn
|
|
910
911
|
* @returns Promise => owner = obj: mã verificationCode nhập vào đúng và trả về thông tin người dùng; owner = null: mã verificationCode nhập vào sai;
|
|
911
912
|
*/
|
|
912
|
-
|
|
913
|
+
verificationSignup_byOTP_Sales365(verificationCode: string): Promise<unknown>;
|
|
913
914
|
/**
|
|
914
915
|
* @example:
|
|
915
916
|
* this.vhAuth.signInWithEmailAndPassword_Sales('emp11@gmail.com', '123456')
|