Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing error messages in APIv2 (closes #1333) #1349

Merged
merged 2 commits into from
Jun 27, 2018
Merged

Add missing error messages in APIv2 (closes #1333) #1349

merged 2 commits into from
Jun 27, 2018

Conversation

ritesh-skyach
Copy link

Fix error message in API endpoint #1333

@yivo yivo changed the title [WIP] Fix error message in API endpoint [1-7] Add missing error messages in APIv2 (closes #1333) Jun 25, 2018
@@ -6,19 +6,19 @@ def authenticate!

def email_must_be_verified!
if current_user.level? && !current_user.level.in?(%w[ email_verified phone_verified identity_verified ])
raise Grape::Exceptions::Base.new(text: 'Please, verify your E-Mail address.', status: 401)
raise Error.new(text: 'Please, verify your E-Mail address.', status: 401)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need specs for this.

@dinesh-skyach
Copy link

@yivo specs have been added.

@mod mod merged commit 0b7592c into openware:1-7-stable Jun 27, 2018
@dinesh-skyach dinesh-skyach deleted the issue-1333-1-7 branch December 27, 2018 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants