douduanque5850 2016-10-20 13:27
浏览 35

app / console sulu:security:user:create正在运行但是sulu-login不起作用

I am new in administrating websites with Symfony and Sulu CMS.

But now I have to setup an test environment based on an existing project. So far I think I've managed to get Symfony and Sulu basically working.

Now to my problem: I created an user with php app/console sulu:security:user:create and this was working fine. I have not been able to create a role so far, but there are existing roles in the MySQL database, so I used one of them for my new user. When I try to login on the sulu.lo/admin page the new combination of user and password isn't working.

Are there any checks I can perform to got a hint what the problem could be?

Please ask me for needed extra information.

Best regards

  • 写回答

1条回答 默认 最新

  • dongqiulei6805 2019-01-30 22:36
    关注
    1. Create user role

      $ php ./bin/adminconsole sulu:security:role:create --env=prod

    Input your role name and choose system. The output will be something like this:

    Please choose a rolename: admin
    Please choose a system: 
     [0] Sulu
     > 0
    Created role "admin" in system "Sulu".
    
    1. Create user:

      $ php ./bin/adminconsole sulu:security:user:create --env=prod

    Input you values. For example:

    Please choose a username: manager
    Please choose a FirstName: Ural
    Please choose a LastName: Davletshin
    Please choose a Email: mail@dot.com
    Please choose a locale
      [0] de
      [1] en
      [2] fr
      [3] nl
      > 1 
        Please choose a role: 
         [0] admin
         > 0
       Please choose a Password: 
       Created user "manager" in role "admin"
    
    1. Go to admin login page type your username and password and welcome :-)
    评论

报告相同问题?

悬赏问题

  • ¥15 我的数据无法存进链表里
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端