Unable to login to Grafana on v12.4.0 as admin

I am unable to login Grafana as a admin user. It gives the error Invalid username or password

Enabled the login using username/password and added password in gitlab.rb

Tried to change the password using gitlab-ctl set-grafana-password as well but did not help/

Steps to reproduce

  1. Enable grafana logging

#Grafana

grafana['disable_login_form'] = false

grafana['admin_password'] = 'Grafana#LaTe!'

  1. Login to grafana using admin credentials results in failure. It gives the error Invalid username or password

I have followed the documentation but not sure whether I am missing something.

Edited by koshur