1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-06 07:37:40 +00:00

update user register...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-13 17:09:13 +08:00
parent a8b45f0800
commit 056187c79f
4 changed files with 14 additions and 14 deletions

View File

@ -1,12 +1,14 @@
<?php
class user_public extends AmysqlController {
function register() {
if ($this->_model ( "authme" )->register ( $_REQUEST ['user'], md5 ( $_REQUEST ['pass'] ), $_REQUEST ['mail'], GetUserIP () ))
if ($this->_model ( "authme" )->register ( $_REQUEST ['user'], md5 ( $_REQUEST ['pass'] ), $_REQUEST ['mail'], GetUserIP () )){
$_SESSION ['username'] = $_REQUEST ['user'];
$_SESSION ['mail'] = $_REQUEST ['mail'];
$_SESSION ['ip'] = GetUserIP ();
JsonSuccess ( 'Minecraft帐号注册成功' );
JsonError ( 'Minecraft帐号注册失败' );
$_SESSION ['mail'] = $_REQUEST ['mail'];
$_SESSION ['ip'] = GetUserIP ();
JsonSuccess ( 'Minecraft帐号注册成功' );
}else{
JsonError ( 'Minecraft帐号注册失败' );
}
}
function login() {
if ($this->_model ( "authme" )->login ( @$_REQUEST ['user'], md5 ( @$_REQUEST ['pass'] ) )) {