codeedu/simplesamlphp-module-sqlauthpassword

A simple sql auth module to simplesamlphp

Installs: 3 941

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 1

Open Issues: 0

Type:simplesamlphp-module

0.0.1 2019-05-02 14:56 UTC

This package is auto-updated.

Last update: 2024-11-29 06:03:09 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'] ],