| 131 | } |
| 132 | |
| 133 | AuthenticationData createPasswordAuthData( |
| 134 | AuthenticationType type, |
| 135 | const String & password, |
| 136 | const std::optional<OneTimePasswordSecret> & otp_secret, |
| 137 | bool validate, |
| 138 | bool is_hash) |
| 139 | { |
| 140 | AuthenticationData auth_data(type); |
| 141 | if (is_hash) |
| 142 | auth_data.setPasswordHashHex(password, otp_secret, validate); |
| 143 | else |
| 144 | auth_data.setPassword(password, otp_secret, validate); |
| 145 | return auth_data; |
| 146 | } |
| 147 | |
| 148 | AuthenticationData parseUserAuthMethod( |
| 149 | const Poco::Util::AbstractConfiguration & config, |
no test coverage detected