mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 22:03:11 +07:00
Closes #85: UI for login as guest
This commit is contained in:
@@ -331,7 +331,7 @@ public class UserResource extends BaseResource {
|
||||
// Get the user
|
||||
UserDao userDao = new UserDao();
|
||||
User user = null;
|
||||
if (username.equals(Constants.GUEST_USER_ID)) {
|
||||
if (Constants.GUEST_USER_ID.equals(username)) {
|
||||
if (ConfigUtil.getConfigBooleanValue(ConfigType.GUEST_LOGIN)) {
|
||||
// Login as guest
|
||||
user = userDao.getActiveByUsername(Constants.GUEST_USER_ID);
|
||||
|
||||
Reference in New Issue
Block a user