websauna.system.user.events module

Events fired by websauna.system.user package.

class websauna.system.user.events.FirstLogin(request, user)[source]

Bases: websauna.system.user.events.UserEvent

User logs in to the site for the first time.

Fired upon:

  • Social media login

  • After clicking email activation link

Fired before Login

class websauna.system.user.events.Login(request, user)[source]

Bases: websauna.system.user.events.UserEvent

User has logged in to the site.

Fired upon:

  • Social media login

  • When sending email activation link

Fired after login data (last_login_ip) has been updated.

class websauna.system.user.events.NewRegistrationEvent(request, user, activation, values)[source]

Bases: websauna.system.user.events.UserEvent

User register to the portal.

class websauna.system.user.events.PasswordResetEvent(request, user, password)[source]

Bases: websauna.system.user.events.UserEvent

User reset password.

class websauna.system.user.events.RegistrationActivatedEvent(request, user, activation)[source]

Bases: websauna.system.user.events.UserEvent

User activation om the portal.

class websauna.system.user.events.UserAuthSensitiveOperation(request, user, kind)[source]

Bases: websauna.system.user.events.UserEvent

User authentication details have changes.

All user sessions should be dropped.

Fired upon:

  • Password change

  • Email change (TODO)

class websauna.system.user.events.UserCreated(request, user)[source]

Bases: websauna.system.user.events.UserEvent

User is created.

Fired upon:

  • Social media login

  • When sending email activation link

class websauna.system.user.events.UserEvent(request, user)[source]

Bases: object

User related event.