https://github.com/codeedu/simplesamlphp-module-sqlauthpassword
A simple sql auth module to simplesamlphp
https://github.com/codeedu/simplesamlphp-module-sqlauthpassword
Last synced: about 2 months ago
JSON representation
A simple sql auth module to simplesamlphp
- Host: GitHub
- URL: https://github.com/codeedu/simplesamlphp-module-sqlauthpassword
- Owner: codeedu
- Created: 2019-05-02T14:58:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T15:13:37.000Z (about 7 years ago)
- Last Synced: 2025-02-02T04:06:01.167Z (over 1 year ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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']
],