GitLab wird am Montag, den 31. Januar, zwischen 08:00 und 12:00 Uhr wegen wichtigen Wartungsarbeiten nicht zur Verfügung stehen.

Commit 1b73e0e0 authored by jplang's avatar jplang
Browse files

Force password reset for default admin user (#22381).

Patch by Gregor Schmidt.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b13b5a91
class ForcePasswordResetDuringSetup < ActiveRecord::Migration
def up
User.where(login: "admin", last_login_on: nil).update_all(must_change_passwd: true)
def down
User.where(login: "admin", last_login_on: nil, must_change_passwd: true).update_all(must_change_passwd: false)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment