mayureshagashe2105 commited on
Commit
b7bbf23
·
2 Parent(s): ea406bd 8dbdcd8

fix conflicts

Browse files
TechdocsAPI/backend/services/auth/ops.py CHANGED
@@ -61,13 +61,13 @@ async def ops_signup(bgtasks: BackgroundTasks, response_result: GeneralResponse,
61
 
62
 
63
 
64
- DBQueries.insert_to_database('auth', (data.username, Auth.get_password_hash(data.password), "", 0),
65
  ['username', 'password', 'email', 'is_verified'])
66
 
67
 
68
 
69
  response_result.status = 'success'
70
- response_result.message = [f'Activate your account by clicking on the link sent to {data.email}.\nMake sure to check your spam folder.']
71
 
72
  def ops_login(data:LoginCreds):
73
  """Wrapper method to handle login process.
@@ -96,8 +96,8 @@ def ops_login(data:LoginCreds):
96
  # password is incorrect
97
  raise InvalidCredentialsException(response_result)
98
 
99
- if not user[2]:
100
- raise EmailNotVerifiedException()
101
 
102
  # password is correct
103
  return TokenSchema(access_token=Auth.create_access_token(data.username),
 
61
 
62
 
63
 
64
+ DBQueries.insert_to_database('auth', (data.username, Auth.get_password_hash(data.password), data.email, 1),
65
  ['username', 'password', 'email', 'is_verified'])
66
 
67
 
68
 
69
  response_result.status = 'success'
70
+ # response_result.message = [f'Activate your account by clicking on the link sent to {data.email}.\nMake sure to check your spam folder.']
71
 
72
  def ops_login(data:LoginCreds):
73
  """Wrapper method to handle login process.
 
96
  # password is incorrect
97
  raise InvalidCredentialsException(response_result)
98
 
99
+ # if not user[2]:
100
+ # raise EmailNotVerifiedException()
101
 
102
  # password is correct
103
  return TokenSchema(access_token=Auth.create_access_token(data.username),