mirror of
https://e.coding.net/circlecloud/CTZServerCommon.git
synced 2024-12-27 18:38:47 +00:00
add email faild...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
cc0f1e71d9
commit
d6dbb31dcb
@ -11,6 +11,7 @@ public class CTZAuth {
|
||||
static final String UserField = "player";
|
||||
static final String PWDField = "password";
|
||||
static final String ISLoginField = "islogin";
|
||||
static final String EMAILField = "email";
|
||||
static final String ALLOWLoginField = "allowlogin";
|
||||
static final String LASTLOGOUT = "lastlogout";
|
||||
static final String IP = "ip";
|
||||
@ -88,7 +89,7 @@ public class CTZAuth {
|
||||
return sql.dbUpdate(TableName, new KeyValue(ALLOWLoginField, "1").add(IP, ip == null ? "127.0.0.1" : ip), new KeyValue(UserField, username));
|
||||
}
|
||||
|
||||
public static boolean registerPlayer(String username, String password) {
|
||||
public static boolean registerPlayer(String username, String password, String email) {
|
||||
if (isRegistered(username))
|
||||
return false;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user