codeedu/simplesamlphp-module-sqlauthpassword

A simple sql auth module to simplesamlphp

Installs: 3 651

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Type:simplesamlphp-module

0.0.1 2019-05-02 14:56 UTC

This package is auto-updated.

Last update: 2021-12-29 03:17:33 UTC


README

'example-sql-custom' => [ 'sqlauthcustom:SQL', 'dsn' => "mysql:host=$DB_HOST;port=$DB_PORT;dbname=$DB_DATABASE", 'username' => $DB_USERNAME, 'password' => $DB_PASSWORD, 'query' => 'SELECT fields FROM users WHERE email = :email;', 'password_verify' => function($rawPassword, $row){ return password_verify($rawPassword, $row['password']); }, 'ignore_attributes' => ['password'] ],