diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-26 11:17:28 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:20 -0500 |
commit | 0622450209274a9051c03458156a694f2274f61e (patch) | |
tree | 8ca84592ef42c1a124b42a1310d164d9b89bdd5e /app | |
parent | e2b5f30a21d1ef6e13f9ac57fc26c4272eceffd3 (diff) |
[Invites] Add more bits to invite strings
Diffstat (limited to 'app')
-rw-r--r-- | app/models/invite.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/invite.rb b/app/models/invite.rb index 29d25eae8..4695b4ebb 100644 --- a/app/models/invite.rb +++ b/app/models/invite.rb @@ -35,7 +35,7 @@ class Invite < ApplicationRecord def set_code loop do - self.code = ([*('a'..'z'), *('A'..'Z'), *('0'..'9')] - %w(0 1 I l O)).sample(8).join + self.code = ([*('a'..'z'), *('A'..'Z'), *('0'..'9')] - %w(0 1 I l O)).sample(16).join break if Invite.find_by(code: code).nil? end end |