Commit 93edd0b8 authored by dsbenton's avatar dsbenton
Browse files

added email check for bug 4

parent bf69d9dd
......@@ -213,6 +213,10 @@ export default {
// } else {
// callback();
// }
if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value)))
{
callback(new Error("Please enter a valid email"));
}
callback();
};
const validatePassword = (rule, value, callback) => {
......
Supports Markdown
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