Advertisement
zoltanb

Untitled

May 8th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. AuthenticationResponse& AuthenticationApi::Authenticate(AuthenticationRequest& request) {
  2.   SecretHolder* secret_holder = request.GetSecretHolder();
  3.  
  4.   CredentialStore* credential_store = CredentialValidatorUserPassword::GetInstance();
  5.   if (credential_store->IsValid(secret_holder)) {
  6.     return GenerateSuccessfullResult(request);
  7.   } else {
  8.     return GenerateFailureResult(request);
  9.   }
  10. }
  11.  
  12. const std::string AuthenticationApi::Info() {
  13.   return "mod_auth is alive! Version: 0.0.1";
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement