Login problem
사장님
사장님 2017-11-21 13:37:35
0
13
1426

No error is reported when logging in and the submission is not redirected, just on the original webpage

사장님
사장님

reply all(9)
唐达明

How did you solve the login problem


◎ _黑夜遮住眼’’

How to solve this problem...Brother please solve

  • reply window.open()
    사장님 author 2018-04-18 12:05:07
回不去的昨天

This is also the case for me, has it been resolved?

  • reply Have you solved it?
    丑牛小轩 author 2018-02-06 13:50:16
华先生º

This depends on whether you have set the error level and the error mechanism of TP5. If setting errors, please add error_reporting(E_ERROR | E_WARNING | E_PARSE);

in admin/common.php
金悦网络

123.png

Comment out the part written to the database and use the ajax of the login template

if (data.status == 1) {
alert(data.message );
window.location.href = "{:url('index/index')}";
} else {
alert(data.message);
window.location.href = "{:url('login/index')}";
}

  • reply If this is commented out, the session cannot be stored.
    Frank author 2018-04-25 11:20:28
  • reply Solved: Change the session namespace to use think\facade\Session;
    Frank author 2018-04-25 11:56:42
사장님

Server 500 error.

phpcn_u37517

Test print out

lge

Post the code

电动小老虎

Print the $post data. . See what it is.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!