提交 52188c77 编写于 作者: O Oscar Del Ben

Correct documentation of SecurePassword

上级 f92814e4
......@@ -62,7 +62,8 @@ def authenticate(unencrypted_password)
end
end
# Encrypts the password into the password_digest attribute.
# Encrypts the password into the password_digest attribute, only if the
# new password is not blank.
def password=(unencrypted_password)
@password = unencrypted_password
unless unencrypted_password.blank?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册