Beispiel #1
0
    teacher_class_password_reset
from portal.views.teacher.home import teacher_home
from portal.views.email import send_new_users_report

js_info_dict = {
    'packages': ('conf.locale',),
}

two_factor_patterns = [
    url(r'^account/login/$', custom_2FA_login, name='login'),
    url(r'', include('two_factor.urls', 'two_factor')),
    url(r'^account/two_factor/setup/$', SetupView.as_view(), name='setup'),
    url(r'^account/two_factor/qrcode/$', QRGeneratorView.as_view(), name='qr'),
    url(r'^account/two_factor/setup/complete/$', SetupCompleteView.as_view(),
        name='setup_complete'),
    url(r'^account/two_factor/backup/tokens/$', teacher_verified(BackupTokensView.as_view()),
        name='backup_tokens'),
    url(r'^account/two_factor/$', teacher_verified(ProfileView.as_view()), name='profile'),
    url(r'^account/two_factor/disable/$', teacher_verified(DisableView.as_view()), name='disable'),
]


urlpatterns = patterns(
    '',
    url(r'^favicon\.ico$', RedirectView.as_view(url='/static/portal/img/favicon.ico', permanent=True)),

    url(r'^$', home_view, name='home'),
    url(r'^teach/$', teach, name='teach'),
    url(r'^play/$', play, name='play'),
    url(r'^about/$', TemplateView.as_view(template_name='portal/about.html'), name='about'),
    url(r'^help/$', TemplateView.as_view(template_name='portal/help-and-support.html'),
js_info_dict = {"packages": ("conf.locale",)}

two_factor_patterns = [
    url(r"^account/login/$", custom_2FA_login, name="login"),
    url(r"", include("two_factor.urls", "two_factor")),
    url(r"^account/two_factor/setup/$", SetupView.as_view(), name="setup"),
    url(r"^account/two_factor/qrcode/$", QRGeneratorView.as_view(), name="qr"),
    url(
        r"^account/two_factor/setup/complete/$",
        SetupCompleteView.as_view(),
        name="setup_complete",
    ),
    url(
        r"^account/two_factor/backup/tokens/$",
        teacher_verified(BackupTokensView.as_view()),
        name="backup_tokens",
    ),
    url(
        r"^account/two_factor/$",
        teacher_verified(ProfileView.as_view()),
        name="profile",
    ),
    url(
        r"^account/two_factor/disable/$",
        teacher_verified(DisableView.as_view()),
        name="disable",
    ),
]

Beispiel #3
0
    organisation_kick_new, organisation_toggle_admin_new, teacher_disable_2FA_new

js_info_dict = {
    'packages': ('conf.locale', ),
}

two_factor_patterns = [
    url(r'^account/login/$', custom_2FA_login, name='login'),
    url(r'', include('two_factor.urls', 'two_factor')),
    url(r'^account/two_factor/setup/$', SetupView.as_view(), name='setup'),
    url(r'^account/two_factor/qrcode/$', QRGeneratorView.as_view(), name='qr'),
    url(r'^account/two_factor/setup/complete/$',
        SetupCompleteView.as_view(),
        name='setup_complete'),
    url(r'^account/two_factor/backup/tokens/$',
        teacher_verified(BackupTokensView.as_view()),
        name='backup_tokens'),
    url(r'^account/two_factor/$',
        teacher_verified(ProfileView.as_view()),
        name='profile'),
    url(r'^account/two_factor/disable/$',
        teacher_verified(DisableView.as_view()),
        name='disable'),
]

urlpatterns = patterns(
    '',
    url(
        r'^favicon\.ico$',
        RedirectView.as_view(url='/static/portal/img/favicon.ico',
                             permanent=True)),
Beispiel #4
0
    teacher_print_reminder_cards,
    teacher_accept_student_request,
    teacher_reject_student_request,
    teacher_class_password_reset,
)
from portal.views.teacher.home import teacher_home

js_info_dict = {"packages": ("conf.locale",)}

two_factor_patterns = [
    url(r"^account/login/$", custom_2FA_login, name="login"),
    url(r"", include("two_factor.urls", "two_factor")),
    url(r"^account/two_factor/setup/$", SetupView.as_view(), name="setup"),
    url(r"^account/two_factor/qrcode/$", QRGeneratorView.as_view(), name="qr"),
    url(r"^account/two_factor/setup/complete/$", SetupCompleteView.as_view(), name="setup_complete"),
    url(r"^account/two_factor/backup/tokens/$", teacher_verified(BackupTokensView.as_view()), name="backup_tokens"),
    url(r"^account/two_factor/$", teacher_verified(ProfileView.as_view()), name="profile"),
    url(r"^account/two_factor/disable/$", teacher_verified(DisableView.as_view()), name="disable"),
]


urlpatterns = patterns(
    "",
    url(r"^favicon\.ico$", RedirectView.as_view(url="/static/portal/img/favicon.ico", permanent=True)),
    url(r"^$", home_view, name="home"),
    url(r"^teach/$", teach, name="teach"),
    url(r"^play/$", play, name="play"),
    url(r"^about/$", TemplateView.as_view(template_name="portal/about.html"), name="about"),
    url(r"^help/$", TemplateView.as_view(template_name="portal/help-and-support.html"), name="help"),
    url(r"^contact/$", contact, name="contact"),
    url(r"^terms/$", TemplateView.as_view(template_name="portal/terms.html"), name="terms"),