Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AuthenticationResponse& AuthenticationApi::Authenticate(AuthenticationRequest& request) {
- SecretHolder* secret_holder = request.GetSecretHolder();
- CredentialStore* credential_store = CredentialValidatorUserPassword::GetInstance();
- if (credential_store->IsValid(secret_holder)) {
- return GenerateSuccessfullResult(request);
- } else {
- return GenerateFailureResult(request);
- }
- }
- const std::string AuthenticationApi::Info() {
- return "mod_auth is alive! Version: 0.0.1";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement