monarc-project / MonarcAppFO

MONARC - Method for an Optimised aNAlysis of Risks by @NC3-LU
https://www.monarc.lu
GNU Affero General Public License v3.0
100 stars 38 forks source link

Invalid password #493

Closed dbarzin closed 1 year ago

dbarzin commented 1 year ago

Describe the bug Could not login after manual installation of Monarc. Error on the login page "Your e-mail or password is invalid, please try again."

To Reproduce Steps to reproduce the behavior:

  1. Go to login page : http;//127.0.0.1
  2. Click user: admin@admin.localhost password: admin click "Log in"

Expected behavior Successful login

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Questions Answers
Type of issue Bug
OS version (server) Ubuntu 22.04
OS version (client) Win10
PHP version 8.0
MONARC version / git hash release v2.12.6
Browser Chrome

Additional context No error present in the Apache error.log The user is present in the database

dbarzin commented 1 year ago

We have found these error messages in the web console : "message": "Laminas\View\Renderer\PhpRenderer::render: Unable to render template \"monarc/core/authentication/get-list\"; resolver could not resolve to a file", "message": "An exception occurred in the driver: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'"

ruslanbaidan commented 1 year ago

Would it be possible for you to install php v8.1 and retry ? Otherwise we can investigate the problem on v8.0 later.

dbarzin commented 1 year ago

I finally get it to work with PHP 8.1 and Ubuntu 22.04. I will provide a installation procedure. Thanks, Didier

ruslanbaidan commented 1 year ago

Thank you for letting us know. I'm going to validate the issue with php8.0 later.

dbarzin commented 1 year ago

The objective is not to get it to work with several PHP versions but with a good one.