Commit 887144ad authored by wangqinghua's avatar wangqinghua

修改密码 限制

parent 9e86dd1a
......@@ -24,7 +24,7 @@
<ng-container *ngIf="isSend">
<div class="pwd-item">
<img src="./assets/imgs/icon-password-new.png" class="pwd-img">
<input [(ngModel)]="passwordInfo.modifyPassword" class="pwd-content" type="password" required placeholder="新密码(8到16位,包含字母与数字)"
<input [(ngModel)]="passwordInfo.modifyPassword" class="pwd-content" type="password" required placeholder="新密码以英文字母开头,同时包含数字,长度8-20位"
/>
</div>
<div class="pwd-item">
......
......@@ -72,4 +72,7 @@ page-forget-pwd {
border: 1px solid #e42417;
background-color: #e42417;
}
input::-webkit-input-placeholder{
font-size: 12px;
}
}
......@@ -13,7 +13,7 @@ import {CommonService} from "../../provide/common.service";
})
export class ForgetPwdPage {
myreg = /^(?![^a-zA-Z]+$)(?!\\D+$).{8,16}$/;
myreg = /^(?=[a-zA-Z]+\d+)\w{8,20}$/;
user = {
phone: '',
......@@ -25,7 +25,7 @@ export class ForgetPwdPage {
sureModifyPassword: ''
};
isSend = false;
isSend = true;
disabledClick = false;
verifyText = '获取验证码';
......@@ -130,7 +130,7 @@ export class ForgetPwdPage {
return false;
}
if (!this.myreg.test(this.passwordInfo.modifyPassword)) {
this.appService.popToastView('新密码由8到16位数字和字母组成!', 'top', 2000);
this.appService.popToastView('新密码以英文字母开头,同时包含数字,长度8-20位!', 'top', 2000);
return false;
}
if (this.passwordInfo.modifyPassword != this.passwordInfo.sureModifyPassword) {
......
......@@ -28,7 +28,7 @@ export class VersionPage {
private appUpdateService: AppUpdateService,
private appVersion: AppVersion,
private storage: Storage,
private file:File,
private file: File,
private commonSer: CommonService,
private app: App, private tabSer: TabsService,
private alertCtrl: AlertController) {
......@@ -125,8 +125,11 @@ export class VersionPage {
//清除缓存
clearSotrage() {
this.file.removeRecursively(this.file.cacheDirectory,'io.ionic.smart19.starter').then(e=>
alert(JSON.stringify(e))).catch(err=>alert(err));
this.file.removeRecursively(this.file.cacheDirectory, 'io.ionic.smart19.starter').then(e =>
console.log(JSON.stringify(e)
)).catch(err =>
console.log(err)
);
window.location.reload(true);
this.commonSer.toast('缓存清除成功');
}
......
......@@ -29,7 +29,7 @@ export class AppGlobal {
//默认版本
static defaultVersion = "4.6.0"; //dev
// static defaultVersion; //prrod
// static defaultVersion; //prod
//接口地址
static API: any = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment