Giter Club home page Giter Club logo

Comments (13)

xuanhuan avatar xuanhuan commented on July 23, 2024

这个问题早已解决,你没更新吧?

from ss-panel.

xuanhuan avatar xuanhuan commented on July 23, 2024

如果还出现这个情况,有两个原因,第一:同一个IP/设备同时(之前)打开了多个登录页,造成uaid不正确。解决方法:刷新页面,直接登录。
第二:浏览器禁止了javascript,导致不能后台自动验证uaid,所以会弹出非法访问。

from ss-panel.

liuchao0130 avatar liuchao0130 commented on July 23, 2024

我应该是没有更新,能否告诉我 哪个页面的代码是解决这个问题的 谢谢哈

from ss-panel.

xuanhuan avatar xuanhuan commented on July 23, 2024

建议完整更新,新版修复在修改公告时可能导致内部错误500,还有,请备份lib/announcement.php 这个公告的内容,因为新版使用的是Sqlite来保存公告的内容,要改配置

// SQLite 数据库目录和名称信息
//
//请把 sqliteFileDir sqliteFileName 都修改为任意内容
//
define('SQLITEDIR','SQLITEDIR-'.hash('sha256',"sqliteFileDir"));
define('SQLITEDB','SQLITEDB-'.hash('sha256',"sqliteFileName").".tpl");

from ss-panel.

liuchao0130 avatar liuchao0130 commented on July 23, 2024

头大, 完整更新好麻烦哦, 以后每次有点变动就要完整更新。。会死人啊·~· 我思考下

from ss-panel.

xuanhuan avatar xuanhuan commented on July 23, 2024

你改了什么个性化的?

from ss-panel.

liuchao0130 avatar liuchao0130 commented on July 23, 2024

www.tmdfq.com 你看看我的站, 你还认识它吗

from ss-panel.

liuchao0130 avatar liuchao0130 commented on July 23, 2024

大神帮我解决一下另外一个问题 无法登陆后台那个。。好郁闷啊 现在每次都要进phpmyadmin改数据

from ss-panel.

xuanhuan avatar xuanhuan commented on July 23, 2024

把你的admin/_login.php代码帖上来

from ss-panel.

liuchao0130 avatar liuchao0130 commented on July 23, 2024

来了。。

qq 20150929170820

from ss-panel.

xuanhuan avatar xuanhuan commented on July 23, 2024

为什么后两行开始有个+?

from ss-panel.

liuchao0130 avatar liuchao0130 commented on July 23, 2024

哈哈 大神 你真的是太伟大了, 眼神也特别好。。。解决啦

from ss-panel.

xuanhuan avatar xuanhuan commented on July 23, 2024
<?php
require_once '../lib/config.php';
$email = $_POST['email'];
$email = strtolower($email);
$passwd = $_POST['passwd'];
$passwd = \Ss\User\Comm::SsPW($passwd);
$rem = $_POST['remember_me'];
$c = new \Ss\User\UserCheck();
$q = new \Ss\User\Query();
if($c->EmailLogin($email,$passwd)){
    $rs['code'] = '1';
    $rs['ok'] = '1';
    $rs['msg'] = "欢迎回来";
    //login success
    if($rem= "week"){
        $ext = 3600*24*7;
    }else{
        $ext = 3600;
    }
    //获取用户id
    $id = $q->GetUidByEmail($email);
    //处理密码
    $pw = \Ss\User\Comm::CoPW($passwd);
    setcookie("user_pwd",$pw,time()+$ext);
    setcookie("uid",$id,time()+$ext);
    setcookie("user_email",$email,time()+$ext);
}else{
    $rs['code'] = '0';
    $rs['msg'] = "邮箱或者密码错误";
}
echo json_encode($rs,JSON_UNESCAPED_UNICODE);
?>

from ss-panel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.