Fixed JWT Role assignment and method access
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
this.email = email;
|
||||
this.password = password;
|
||||
|
||||
this.role = Role.USER;
|
||||
this.role = Role.ROLE_USER;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
package com.faf223.expensetrackerfaf.model;
|
||||
|
||||
public enum Role {
|
||||
USER, ADMIN
|
||||
ROLE_USER, ROLE_ADMIN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user