Sha256: 9213cd2322dc577097de2410b7013ae852772c6538cd3aa6f9744af6ade67bb7
Contents?: true
Size: 564 Bytes
Versions: 6
Compression:
Stored size: 564 Bytes
Contents
# frozen-string-literal: true module Rodauth UpdatePasswordHash = Feature.define(:update_password_hash) do depends :login_password_requirements_base def password_match?(password) if (result = super) && update_password_hash? set_password(password) end result end private def update_password_hash? password_hash_cost != @current_password_hash_cost end def get_password_hash if hash = super @current_password_hash_cost = hash.split('$')[2].to_i end hash end end end
Version data entries
6 entries across 6 versions & 1 rubygems