You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Twitter Signup Not working due to Email property marked as @NotNull and @Column(length = 100, unique = true, nullable = false) (nullable = false) in User.java
Motivation for or Use Case
Social Login via Twitter.
Twitter doesn't provide email address (it requires extra permission to acquire Users Email address).
Now that Email is set to required in User.java it breaks the Twitter signup even though the Twitter application keys I used has rights to access Email address.
Email wasn't required property in version 2.x.
JHipster Version(s)
Version 3.1
JHipster configuration, a .yo-rc.json file generated in the root folder
If making Email required is not adding much and it is breaking Twitter login then I think Email should be allowed to have Null value.
There is an Open Issue regarding retrieving Email address of User from Twitter - Get Email Issue and a ugly workaround here 😆 to get Email.
So it would be great if Email remains Nullable.
The text was updated successfully, but these errors were encountered:
Overview of the issue
Twitter Signup Not working due to Email property marked as
@NotNull
and@Column(length = 100, unique = true, nullable = false)
(nullable = false) in User.javaMotivation for or Use Case
Social Login via Twitter.
Twitter doesn't provide email address (it requires extra permission to acquire Users Email address).
Now that Email is set to required in
User.java
it breaks the Twitter signup even though the Twitter application keys I used has rights to access Email address.Email wasn't required property in version 2.x.
JHipster Version(s)
Version 3.1
JHipster configuration, a
.yo-rc.json
file generated in the root folderEntity configuration(s)
entityName.json
files generated in the.jhipster
directoryNot relevant.
Browsers and Operating System
Chrome and Windows 10.
Reproduce the error
Related issues
#2674
#3167
Suggest a Fix
Change below code in
_User.java
to previous 2.x version code:
Refer this _User.java in v3.1 and _User.java in v2.x
If making Email required is not adding much and it is breaking Twitter login then I think Email should be allowed to have Null value.
There is an Open Issue regarding retrieving Email address of User from Twitter - Get Email Issue and a ugly workaround here 😆 to get Email.
So it would be great if Email remains Nullable.
The text was updated successfully, but these errors were encountered: