<%namespace name="components" file="/components.html"/> <%namespace name="sso" file="/sso.html"/> <% login_types = h.allowed_login_types() if 'username+password' in login_types and 'email+password' in login_types: field_title = _('Email or username:') field_type = 'text' else: field_title = _('Login:') field_type = 'text' if 'email+password' in login_types and \ 'username+password' not in login_types: field_title = _('Email:') field_type = 'email' %>
%if 'shibboleth' in login_types:
${_(u"Login") if c.hide_locallogin else _(u"Login via Shibboleth")}
%endif %if not c.hide_locallogin:
%if h.allow_user_registration(): ${_("or")} ${_("Register new account")|n} %endif
%endif <%sso:form scenario="login" />