[Library | Trunk]: Quick fix: lowercase the email of user

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58624 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-05-07 09:50:59 +00:00
parent 6ab1945f4c
commit 3810952189
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export class UserManagementService {
user.id = (info.sub && info.sub.indexOf('@')) ? info.sub.substring(0, info.sub.indexOf('@')) : info.sub; user.id = (info.sub && info.sub.indexOf('@')) ? info.sub.substring(0, info.sub.indexOf('@')) : info.sub;
user.firstname = (info.given_name) ? info.given_name : ""; user.firstname = (info.given_name) ? info.given_name : "";
user.lastname = (info.family_name) ? info.family_name : ""; user.lastname = (info.family_name) ? info.family_name : "";
user.email = info.email; user.email = info.email.toLowerCase(); // TODO remove, is a quick fix
user.fullname = (info.name) ? info.name : ""; user.fullname = (info.name) ? info.name : "";
if (user.fullname == "") { if (user.fullname == "") {
if (user.firstname != "") { if (user.firstname != "") {