Commit 9d88b3ba authored by Diego Molteni's avatar Diego Molteni
Browse files

relaxed requirement on email

parent 4777e7dc
Pipeline #35912 passed with stages
in 13 minutes and 47 seconds
......@@ -36,7 +36,7 @@ export class SubProjectParser {
subproject.acls = (req.body && req.body.acls) ? req.body.acls : { 'admins': [], 'viewers': [] }
// check user input params
Params.checkEmail(subproject.admin, 'admin', false);
Params.checkString(subproject.admin, 'admin', false);
Params.checkString(subproject.ltag, 'ltag', false);
// This method is temporary required by slb during the migration of sauth from v1 to v2
......
......@@ -23,7 +23,7 @@ export class UserParser {
public static removeUser(req: expRequest): { email: string, sdPath: SDPathModel } {
Params.checkBody(req.body);
Params.checkEmail(req.body.email, 'email');
Params.checkString(req.body.email, 'email');
Params.checkString(req.body.path, 'path');
const email = req.body.email;
......@@ -46,7 +46,7 @@ export class UserParser {
public static addUser(req: expRequest): { email: string, sdPath: SDPathModel, groupRole: string } {
Params.checkBody(req.body);
Params.checkEmail(req.body.email, 'email');
Params.checkString(req.body.email, 'email');
Params.checkString(req.body.path, 'path');
const email = req.body.email;
......
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