(self)
| 308 | return status, msg |
| 309 | |
| 310 | def login(self): |
| 311 | status, msg = self.source.login(self.form) |
| 312 | if status: |
| 313 | self.set_source_friendly_name(self.source.get_friendly_name()) |
| 314 | current_app.logger.debug( |
| 315 | "Authentication and Login successfully done via source : %s" % |
| 316 | self.source.get_source_name()) |
| 317 | |
| 318 | # Set the login, logout view as per source if available |
| 319 | current_app.login_manager.login_view = getattr( |
| 320 | self.source, 'LOGIN_VIEW', 'security.login') |
| 321 | current_app.login_manager.logout_view = getattr( |
| 322 | self.source, 'LOGOUT_VIEW', 'security.logout') |
| 323 | |
| 324 | return status, msg |
| 325 | |
| 326 | |
| 327 | def get_auth_sources(type): |
no test coverage detected