Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
fix(server:auth): don't accept non-username-password transactions in …
Browse files Browse the repository at this point in the history
…ValidatePassword
  • Loading branch information
John Doe committed Jan 11, 2016
1 parent 914919b commit f4db93e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ final class AuthServiceImpl(val activationContext: CodeActivation)(
): Future[HandlerResult[ResponseAuth]] = {
val action =
for {
transaction fromDBIOOption(AuthErrors.PhoneCodeExpired)(AuthTransactionRepo.findChildren(transactionHash))
transaction fromDBIOOption(AuthErrors.PhoneCodeExpired)(AuthUsernameTransactionRepo.find(transactionHash))
(userId, countryCode) validateCode(transaction, password)
userStruct authorizeT(userId, countryCode, transaction, clientData)
} yield ResponseAuth(userStruct, ApiConfig(maxGroupSize))
Expand Down

0 comments on commit f4db93e

Please sign in to comment.