Does Discuz have an interface for judging logins? If so, what happens when you click a button on a system to invoke the interface in the forum to log in successfully? Novice Please advise
Reply content:
Does Discuz have an interface for judging logins? If so, what happens when you click a button on a system to invoke the interface in the forum to log in successfully? Novice Please advise
Ucenter Interface Development documentation, with what you want.
Document: Http://faq.comsenz.com/library/UCenter/api/api_index.htm
Login function:
array uc_user_login(string username , string password [, bool isuid , bool checkques , integer questionid , string answer])
DEMO:
list($uid, $username, $password, $email) = uc_user_login($_POST['username'], $_POST['password']);if($uid > 0) { echo '登录成功';} elseif($uid == -1) { echo '用户不存在,或者被删除';} elseif($uid == -2) { echo '密码错';} else { echo '未定义';}
http://faq.comsenz.com/library/UCenter/interface/interface_user.htm###
It's hard to describe.
It is recommended to know the Uccenter interface of Discuz