Created
May 12, 2020 12:10
-
-
Save dmi3coder/02102afa42301f2a96876a40685da559 to your computer and use it in GitHub Desktop.
User Object for Quarkus JWT auth example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tech.donau.quarkify.data; | |
import io.quarkus.hibernate.orm.panache.PanacheEntity; | |
import javax.persistence.Entity; | |
@Entity | |
public class User extends PanacheEntity { | |
public String login; | |
public String email; | |
public String password; // Use e.g Bcrypt to encrypt password, don't store it as plain text :) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment