所以我一直在使用外部PHPBB登录脚本,目前它适用于舞台
所以基本上,论坛不应该要求用户在外部登录后重新进行身份验证,是否有其他人遇到此问题?我已将$ auth->登录设置为自动登录但由于某种原因它未生效
以下是处理登录的方式
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if($user->data['is_registered'])
{
//User is already logged in
?>
<p>Welcome back, <?php echo $user->data['username']; ?>, You currently have <?php echo $user->data['user_unread_privmsg']; ?> new messages</p>
<?php
}
else
{
$result = $auth->login($username, $password, true);
?>
<p>Welcome, <?php echo $user->data['username']; ?>, You currently have <?php echo $user->data['user_unread_privmsg']; ?> new messages</p>
<?php
}