Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6347

Closed
Open
Created Feb 18, 2014 by Administrator@rootOwner

Admin can't change own password in admin panel

Created by: hugelgupf

Relevant output of production.log:

ActiveRecord::StatementInvalid (Mysql2::Error: Column 'admin' cannot be null: UPDATE `users` SET `admin` = NULL, `encrypted_password` = '$2a$10$CdXVbbxfWUMs4rpwR3sVF.8sDpO9cAxnRmAFMozztx1IDu1QgZQJK', `updated_at` = '2014-02-18 01:57:33' WHERE `users`.`id` = 3):
  app/controllers/admin/users_controller.rb:74:in `block in update'
  app/controllers/admin/users_controller.rb:73:in `update'
  app/controllers/application_controller.rb:57:in `set_current_user_for_thread'

My best guess is that this is because the Admin-checkbox is greyed out for yourself with a note that "you can't remove your own admin rights." Leads to admin = NULL in this statement, which leads to a 500 'something went wrong' page.

Assignee
Assign to
Time tracking