Jim Rigsbee
2020-02-13 ec81615b821b47611e427e66eab90446507b8b5b
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
echo "user = User.where(id: 1).first
user.password = '{{ windows_password }}'
user.password_confirmation = '{{ windows_password }}'
user.password_automatically_set = false
user.reset_password_token = nil
user.reset_password_sent_at = nil
user.save!
user.unlock_access!
quit
" | gitlab-rails console production