Fixed issue when creating new users
This commit is contained in:
parent
5d6fbd3e37
commit
f397ce6c72
|
@ -134,10 +134,10 @@ public abstract class AbstractAuthenticationService implements AuthenticationSer
|
|||
.name(profile.getName()).verified_email(profile.getIsVerified())
|
||||
.email(profile.getEmail()).created(new Date()).lastloggedin(new Date())
|
||||
.additionalinfo("{\"data\":{\"avatar\":{\"url\":\"" + profile.getAvatarUrl()
|
||||
+ "\"}},{\"zenodoToken\":\"" + profile.getZenodoId()
|
||||
+ "\", \"expirationDate\": \"" + Instant.now().plusSeconds(profile.getZenodoExpire()).toEpochMilli()
|
||||
+ "\"},\"zenodoToken\":\"" + profile.getZenodoId()
|
||||
+ "\", \"expirationDate\": \"" + Instant.now().plusSeconds((profile.getZenodoExpire() != null ? profile.getZenodoExpire(): 0)).toEpochMilli()
|
||||
+ "\", \"zenodoRefresh\": \"" + profile.getZenodoRefresh()
|
||||
+ (profile.getProvider() == TokenValidatorFactoryImpl.LoginProvider.ZENODO ? "\", \"zenodoEmail\": \"" + profile.getEmail() : "") +"\"}")
|
||||
+ (profile.getProvider() == TokenValidatorFactoryImpl.LoginProvider.ZENODO ? "\", \"zenodoEmail\": \"" + profile.getEmail() : "") +"\"}}")
|
||||
.authorization_level((short) 1).usertype((short) 1)
|
||||
.build();
|
||||
|
||||
|
|
|
@ -14,4 +14,10 @@ ALTER TABLE public."DatasetProfile"
|
|||
ADD COLUMN "Version" integer;
|
||||
|
||||
ALTER TABLE public."Grant"
|
||||
ADD COLUMN "Type" numeric NOT NULL;
|
||||
ADD COLUMN "Type" numeric NOT NULL;
|
||||
|
||||
ALTER TABLE public."DatasetDataRepository"
|
||||
ADD COLUMN "Data" character varying;
|
||||
|
||||
ALTER TABLE public."DatasetService"
|
||||
ADD COLUMN "Data" character varying;
|
Loading…
Reference in New Issue