1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| [root@ks-gitlab ~]# gitlab-rails console -------------------------------------------------------------------------------- GitLab: 13.2.9 (d43bc5ce99e) FOSS GitLab Shell: 13.3.0 PostgreSQL: 11.7 -------------------------------------------------------------------------------- Loading production environment (Rails 6.0.3.1) irb(main):001:0> irb(main):002:0> User.where(id: 1).first => #<User id:1 @root> irb(main):003:0> user = User.where(id: 1).first => #<User id:1 @root> irb(main):004:0> user.password=12345678 => 12345678 irb(main):005:0> user.password user.password user.password_automatically_set_change_to_be_saved user.password_digest user.password_expires_at_change_to_be_saved user.password= user.password_automatically_set_changed? user.password_expired? user.password_expires_at_changed? user.password_automatically_set user.password_automatically_set_in_database user.password_expires_at user.password_expires_at_in_database user.password_automatically_set= user.password_automatically_set_previous_change user.password_expires_at= user.password_expires_at_previous_change user.password_automatically_set? user.password_automatically_set_previously_changed? user.password_expires_at? user.password_expires_at_previously_changed? user.password_automatically_set_before_last_save user.password_automatically_set_was user.password_expires_at_before_last_save user.password_expires_at_was user.password_automatically_set_before_type_cast user.password_automatically_set_will_change! user.password_expires_at_before_type_cast user.password_expires_at_will_change! user.password_automatically_set_came_from_user? user.password_confirmation user.password_expires_at_came_from_user? user.password_required? user.password_automatically_set_change user.password_confirmation= user.password_expires_at_change irb(main):005:0> user.password_confirmation=12345678 => 12345678 irb(main):006:0> user.save! Enqueued ActionMailer::MailDeliveryJob (Job ID: f474a3ea-4953-4710-976e-10e5f576c4cf) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", {:args=>[#<GlobalID:0x00007f6096b72048 @uri=#<URI::GID gid://gitlab/User/1>>]} => true irb(main):007:0> exit [root@ks-gitlab ~]#
|