回复#64 @mattest :
if (!HashEquals($DBUser['Password'], md5($Password . $DBUser['Salt']))) { $Error = $Lang['Password_Error']; $ErrorCode = 101004; break; }
https://github.com/lincanbin/Carbon-Forum/blob/master/login.php#L63
这是登录成功的验证。
回复#64 @mattest :
https://github.com/lincanbin/Carbon-Forum/blob/master/common.php#L867
$CurUserID = intval(GetCookie('UserID'));//保存当前用户的ID $CurUserExpirationTime = intval(GetCookie('UserExpirationTime'));//Cookie的过期时间,用以替代浏览器强制过期,30天有效 $CurUserCode = GetCookie('UserCode');//用户信息校验码 if ($CurUserExpirationTime > $TimeStamp && $CurUserExpirationTime < ($TimeStamp + 2678400) && $CurUserID && $CurUserCode) { //balabala }
@lincanbin
here's my log
An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) at sun.nio.ch.IOUtil.write(IOUtil.java:65) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487) at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:686) at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:349) at com.android.ddmlib.Client.requestAllocationStatus(Client.java:525) at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:569) at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:544) at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:506) at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:402) at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:64) at com.android.ddmlib.DeviceMonitor$1.run(DeviceMonitor.java:325)
well i try to install the in my device and it show the network error. i have a free domain name and i create a subdomain name api inside that i paste file. but when ill tried to register it show the verification code but it wont me register because its show network error. is there any comfiguration should i do?
登录后方可回帖
还没呢。