Workplace Widget 5.10.23
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
package com.itac.mes.admin.domain;
|
||||
public interface PersonService {}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.itac.mes.gui;
|
||||
import com.itac.util.text.Password;
|
||||
public final class MesContext {
|
||||
private static final MesContext INSTANCE=new MesContext();
|
||||
private Object user;
|
||||
public static MesContext instance(){return INSTANCE;}
|
||||
public Object getUser(){return user;}
|
||||
public boolean doLogin(String username, Password password, String client){
|
||||
if("tester".equals(username) && password.matches("secret123") && "any".equals(client)){
|
||||
user=new Object();return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user