plugin:authpdo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:authpdo [2016-08-04 00:01] – 2001:982:a513:1:49f0:d259:c92:b649 | plugin:authpdo [2018-04-30 16:30] – [Real World Examples] Aleksandr | ||
---|---|---|---|
Line 24: | Line 24: | ||
===== Real World Examples ===== | ===== Real World Examples ===== | ||
+ | |||
Before you go forward to [[# | Before you go forward to [[# | ||
- | * [[plugin: | + | * [[plugin: |
+ | * [[plugin: | ||
+ | * [[plugin: | ||
+ | * [[plugin: | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 75: | Line 79: | ||
There are a couple of settings you most probably want to tune when enabling authpdo: | There are a couple of settings you most probably want to tune when enabling authpdo: | ||
- | * [[config: | + | * [[config: |
- | * [[config: | + | * [[config: |
- | * [[config: | + | * [[config: |
+ | * [[config: | ||
==== Minimal SQL Setup ==== | ==== Minimal SQL Setup ==== | ||
Line 87: | Line 93: | ||
This statement is used to get a single user from the database. This statement should return exactly one row if the user exists. Or no row if it doesn' | This statement is used to get a single user from the database. This statement should return exactly one row if the user exists. Or no row if it doesn' | ||
- | ^ Guaranteed Placeholders | + | ^ Guaranteed Placeholders |
- | | '': | + | | '': |
- | ^ Mandatory fields to return | + | ^ Mandatory fields to return |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | ^ Optional fields to return | + | ^ Optional fields to return |
- | | '' | + | | '' |
Example: | Example: | ||
Line 128: | Line 134: | ||
</ | </ | ||
+ | === Option ' | ||
+ | |||
+ | :!: If your database uses one of the [[config: | ||
+ | |||
+ | This statement is used to check the password a user is providing upon login. | ||
+ | |||
+ | When you set up this setting, your '' | ||
+ | |||
+ | This statement should return a single row on success and no rows on failure. | ||
+ | |||
+ | ^ Guaranteed Placeholders ^^ | ||
+ | | '': | ||
+ | | '': | ||
+ | | '': | ||
+ | ^ Optional Placeholders ^^ | ||
+ | | '' | ||
+ | |||
+ | Example: | ||
+ | <code sql> | ||
+ | SELECT uid | ||
+ | FROM user | ||
+ | WHERE login = :user | ||
+ | AND pass = MD5(CONCAT(MD5(user), | ||
+ | </ | ||
==== Additional SQL Setup ==== | ==== Additional SQL Setup ==== | ||
Line 248: | Line 278: | ||
| '': | | '': | ||
^ Mandatory fields to return ^^ | ^ Mandatory fields to return ^^ | ||
- | | '' | + | | '' |
plugin/authpdo.txt · Last modified: 2020-10-31 18:31 by webtist_hanschur