Commit 2fd29144 authored by Diego Molteni's avatar Diego Molteni
Browse files

Merge branch 'slb/dm3/no-more-email' into 'master'

Removed user identity validation restriction on email form

See merge request !63
parents 4777e7dc 9d88b3ba
Pipeline #35975 passed with stages
in 10 minutes and 19 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;
......
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