Utils User

inyoka.utils.user

Several utilities to work with users.

copyright:
  1. 2007-2025 by the Inyoka Team, see AUTHORS for more details.

license:

BSD, see LICENSE for more details.

inyoka.utils.user.check_activation_key(user, key) bool

Check if an activation key is valid for the given user.

Parameters:
user

The user object for checking purposes.

key

The key that needs to be checked for the user.

inyoka.utils.user.gen_activation_key(user)

Using django’s signer, the activation key is calculated with user id and the username.

Parameters:
user

The user object the activation key is generated for.

inyoka.utils.user.is_valid_username(name)

Check if the username entered is a valid one.