我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Linux中的角色身份验证

I understand how to check if a user exists and log them in, but I need to check what role they play (admin or client) I know to use:

if (!Auth::check('default')) { return $this->redirect('/'); }

but how would I append that to check role?

Li3 only handles authentication directly in the core. For the counterpart responsibility of authorization, you need a library like li3_access. See the README for a breakdown of different possible configurations.

近期文章

  • php获取插入错误
  • 按欧洲日期排序
  • PHP / PDO搜索模式匹配
  • Jquery用Json发送数组
  • Php for循环和mysql查询
  • FPDF / FDPI(在本地但不在线工作)
  • 从数据库获取数据不工作php
  • Laravel和HTMLPurifier自动加载问题
  • Symfony2 + Doctrine。 实体存在于两个包中
  • 本地化数据库结果
  • 在按钮上单击更新具有用户标识的行和列
  • PHP if和while语句不能正常工作
  • 从URL中抓取href值并在html中使用这些结果值
  • jQuery通过ajax post传递一个数组
  • Codeigniter - 添加方法URL和重定向问题
  • 无法将我的表单数据发送到我的电子邮件
  • 在Silex中装饰或扩展HTTP请求类
  • AJAX向PHP发送一个变量来处理问题
  • PHP上传进度条和PHP版本?
  • Smarty获取当前模板文件名/行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华