diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-20 02:35:56 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-20 02:35:56 -0500 |
commit | d95c3cb550bbbc44c22bce5ef758f0c2d502bbeb (patch) | |
tree | 9351837f74650c6680b527d2000276d68606a983 /app | |
parent | a7ce3b78f6b1f9c39a429986cfb55e7fce4fdae1 (diff) |
[Registration] Convert non-Unix newlines before verifying form
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index d20922993..0b2d61862 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -463,7 +463,7 @@ class User < ApplicationRecord end def kobold_hash - value = [account.username, username.downcase, email, invite_request.text].compact.map(&:downcase).join("\u{F0666}") + value = [account.username, username.downcase, email, invite_request.text.gsub(/\r\n?/, "\n")].compact.map(&:downcase).join("\u{F0666}") Digest::SHA512.hexdigest(value).upcase end |