Remove period from email message to avoid confusion
parent
8be72fbde8
commit
ca2a246335
|
@ -13,7 +13,7 @@ class SessionToken < AbstractJwtToken
|
|||
iat: Time.now.to_i,
|
||||
exp: EXPIRY.from_now.to_i,
|
||||
iss: $API_URL)
|
||||
raise Errors::Forbidden, MUST_VERIFY unless (!user.verified?)
|
||||
raise Errors::Forbidden, MUST_VERIFY unless user.verified?
|
||||
|
||||
self.new([{
|
||||
sub: user.email,
|
||||
|
|
|
@ -15,7 +15,7 @@ module Users
|
|||
|
||||
private
|
||||
def user
|
||||
@user ||= User.find_by(verification_token: token)
|
||||
@user ||= User.find_by!(verification_token: token)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Welcome to FarmBot, <%= @user_name %>
|
||||
=====================================
|
||||
|
||||
You please verify your email by visiting <%= @the_url %>.
|
||||
You please verify your email by visiting <%= @the_url %>
|
||||
|
||||
Thanks for joining and have a great day!
|
||||
|
|
Loading…
Reference in New Issue