Commit 186bf8fe authored by Matija Obreza's avatar Matija Obreza
Browse files

Use random UUID for BasicUser!

parent 1d140c51
...@@ -101,7 +101,7 @@ public abstract class BasicUser<R extends GrantedAuthority> extends AuditedVersi ...@@ -101,7 +101,7 @@ public abstract class BasicUser<R extends GrantedAuthority> extends AuditedVersi
@PrePersist @PrePersist
void ensureUUID() { void ensureUUID() {
if (this.uuid == null) { if (this.uuid == null) {
this.uuid = UUID.nameUUIDFromBytes(getEmail().getBytes()).toString(); this.uuid = UUID.randomUUID().toString();
} }
} }
......
Markdown is supported
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