version 1.1.0
method name convention
This commit is contained in:
parent
d680046768
commit
3fba0f9933
@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
group 'com.wasteinformationserver'
|
||||
version '1.0.1'
|
||||
version '1.1.0'
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
|
@ -7,7 +7,6 @@ import com.wasteinformationserver.basicutils.Storage
|
||||
import com.wasteinformationserver.db.JDBC
|
||||
import com.wasteinformationserver.website.HttpTools.Companion.stringToMD5
|
||||
import com.wasteinformationserver.website.basicrequest.PostRequest
|
||||
import java.io.IOException
|
||||
import java.sql.SQLException
|
||||
import java.util.*
|
||||
|
||||
@ -43,7 +42,7 @@ class LoginRequest : PostRequest() {
|
||||
s.last()
|
||||
if (s.row == 1) {
|
||||
//success
|
||||
if (StringToMD5(password!!) == s.getString("password")) {
|
||||
if (stringToMD5(password!!) == s.getString("password")) {
|
||||
debug("login success")
|
||||
LoginState.getObject().logIn()
|
||||
LoginState.getObject().setAccountData(username, s.getString("firstName"), s.getString("secondName"), s.getString("email"), s.getInt("permission"))
|
||||
|
Loading…
Reference in New Issue
Block a user