Previous topic

stalker.ext.auth.login

Next topic

stalker.ext.auth.logout

This Page

stalker.ext.auth.login_required

static auth.login_required(view, error_message=None)

a decorator that implements login functionality to any function or method

Parameters:
  • view – a function returning True or False, thus verifying the entered user name and password
  • error_message – the message to be shown in case a LoginError is raised, a default message will be shown when skipped
Returns:

the decorated function