Validate through all the sources.
(self)
| 272 | return self.source_friendly_name |
| 273 | |
| 274 | def validate(self): |
| 275 | """Validate through all the sources.""" |
| 276 | err_msg = None |
| 277 | for src in self.auth_sources: |
| 278 | source = get_auth_sources(src) |
| 279 | status, err_msg = source.validate(self.form) |
| 280 | if status: |
| 281 | return True |
| 282 | if err_msg: |
| 283 | flash(err_msg, MessageType.WARNING) |
| 284 | return False |
| 285 | |
| 286 | def authenticate(self): |
| 287 | """Authenticate through all the sources.""" |
no test coverage detected