lib/learn_web/client/fork/request.rb in learn-web-1.4.1 vs lib/learn_web/client/fork/request.rb in learn-web-1.4.2
- old
+ new
@@ -17,9 +17,13 @@
self.status = response.status
begin
body = Oj.load(response.body, symbol_keys: true)
self.message = body[:message]
+
+ if self.message && self.message.match(/verified your email/)
+ abort self.message
+ end
rescue
self.message = 'Sorry, something went wrong. Please try again.'
end
end
end