def _set_flask_security(self): """Set Flask-Security specific configurations and init the extension """ set_flask_security_config(self) Security(app=self, datastore=user_datastore) # Get the login manager and set our own callback to be the user getter login_manager = self.extensions['security'].login_manager login_manager.request_loader(user_loader) self.token_serializer = self.extensions[ 'security'].remember_token_serializer
def _set_flask_security(self): """Set Flask-Security specific configurations and init the extension """ set_flask_security_config(self) Security(app=self, datastore=user_datastore) # Get the login manager and set our own callback to be the user getter login_manager = self.extensions['security'].login_manager login_manager.request_loader(user_loader) self.token_serializer = self.extensions[ 'security'].remember_token_serializer