from scaffold.core.widget import base_widget class control(base_widget): oauth_enabled = set() css = '../scaffold/www/default_widgets/css/loginBox.css' def create(self): return self def enable_oauth(self, name): self.oauth_enabled.add(name) return self def render(self): htm = '
Please login with one of the oauth provider below, which is more secure and does not store passwords on our system.
' if self.oauth_enabled: htm += 'Or alternatively login with your previously created account.
' htm += ''' Register for an account | Reset password''' htm += '