Example #1
0
 def render_form(self, error):
     if juju.has_jaas_auth() and not error:
         self.register()
         return
     track_screen("Login to JaaS")
     app.ui.set_header(title="Login to JaaS",
                       excerpt='Enter your Ubuntu SSO credentials')
     app.ui.set_body(JaaSLoginView(app, error=error, cb=self.register))
Example #2
0
 def show_login_screen(self, error):
     track_screen("Login to JaaS")
     app.ui.set_header(title="Login to JaaS",
                       excerpt='Enter your Ubuntu SSO credentials')
     app.ui.set_body(JaaSLoginView(app, error=error, cb=self.register))
Example #3
0
 def render_login(self):
     view = JaaSLoginView(self.register, self.back, self.login_error)
     view.show()