Skip to content

Commit

Permalink
Erros do backend quanto ao padrão de retorno com primeira letra maiscula
Browse files Browse the repository at this point in the history
  • Loading branch information
duzzsys committed May 22, 2020
1 parent 5e0c787 commit 11ec9e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ def confirm_token(self, data):

if v_token == token and user_token == user_id:
self.r = {
'message' : 'OK',
'status' : 200
'Message' : 'OK',
'Status' : 200
}
else:
raise Exception('Invalid credencials')
except Exception as e:
self.r = {
'message' : {
'Message' : {
'error' : str(e)
},
'status' : 401
'Status' : 401
}
return self.r

Expand Down

0 comments on commit 11ec9e1

Please sign in to comment.