samsonos/social_email

0.0.4 2017-03-21 12:14 UTC

This package is not auto-updated.

Last update: 2024-04-27 12:48:55 UTC


README

Generic Email registration and authorization module for Social SamsonPHP framework

Social_email module allows you to pass registration and enter the site via email. You need to configure the module in a proper way to work correctly. There are many options (parameters) for this.

  • dbAccessToken – database field, that stores the token for security.

  • cookieTime – cookie existence time(e.g. 606024 = 24 hours).

  • function authorizeWithEmail - check the entered email. If the data is correct, there is an authorization.

  • function authorize - authorizes the user. If you pass a parameter rememeber, function creates a token and write it to the database and cookie variable.

  • function cookieVerification - authorizes the user if existing cookies match token in the database.

Developed by SamsonOS