Commit f3370afd authored by 张俊's avatar 张俊

用户账号限制

parent d1bc528a
......@@ -206,12 +206,12 @@ export default {
}, 1000);
};
var user_name_pass = (rule, value, callback) => {
var reg = /^[a-zA-Z0-9|\-|_|\.]+$/;
var reg = /^[a-z0-9|\-|_|\.]+$/;
setTimeout(() => {
if (reg.test(value)) {
callback();
} else {
callback(new Error("只支持字母、数字、-、_、."));
callback(new Error("只支持小写字母、数字、-、_、."));
}
}, 100);
};
......
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