简体   繁体   English

Ion_Auth“发件箱”登录错误

[英]Ion_Auth “from box” login error

Should the login work as it is? 登录应该按原样工作吗? I've puted files to my project, added sql but when I'm trying to log in at http://mysite.local/index.php/auth/login with default account (admin@admin.com/password) it gives me the following error: 我已经将文件放入项目中,添加了sql,但是当我尝试使用默认帐户(admin@admin.com/password)登录http://mysite.local/index.php/auth/login时 ,我出现以下错误:

A Database Error Occurred 发生数据库错误

Error Number: 1054 错误编号:1054

Unknown column 'group_id' in 'field list' “字段列表”中的未知列“ group_id”

SELECT email , id , password , group_id FROM ( users ) WHERE email = 'admin@admin.com' AND active = 1 LIMIT 1 从( users )中选择emailidpasswordgroup_id email ='admin@admin.com'并且active = 1限制1

Filename: /home/kirill/WWW/hours/models/ion_auth_model.php 文件名:/home/kirill/WWW/hours/models/ion_auth_model.php

Line Number: 593 行号:593

Line num 593 is the last one over here. 第593行是这里的最后一行。

        $query = $this->db->select($this->identity_column.', id, password, group_id')
              ->where($this->identity_column, $identity)
              ->where('active', 1)
              ->where($this->ion_auth->_extra_where)
              ->limit(1)
              ->get($this->tables['users']);

database.php configured with correct log in values and the tables are in place. 使用正确的登录值配置的database.php和表就位。 Also Users table and users_groups have correct rows with admin login data. 另外,Users表和users_groups具有包含管理员登录数据的正确行。

If it really should work by default where to dig for a problem? 如果在默认情况下真的应该工作,在哪里挖掘问题? I've tried to google this but it wasn't helpful. 我试图用谷歌搜索,但这没有帮助。

It seems pretty clear, Unknown column 'group_id' in 'field list' means there are no columns named group_id in your users table. 似乎很清楚, Unknown column 'group_id' in 'field list'表示您的users表中没有名为group_id列。

Either create this column or don't select it. 创建此列或不选择它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM