Fix the upgrade migration of custom profile fields

The upgrade_2-1_postgresql.sql changes are untested, but do match the changes to upgrade_2-1_mysql.sql that are tested and confirmed.

Signed-off-by: Noteworthy Software, Inc <online@noteworthysoftware.com>
Modify genderTypes array to meet requested coding style

Signed-off-by: Noteworthy Software, Inc <online@noteworthysoftware.com>
Alternating and alternative bg colors

Signed-off-by: Suki <suki@missallsunday.com>
Merge pull request #2551 from MissAllSunday/css_alternative_colors

Alternating and alternative bg colors
Add \TOTP\Auth class

Class taken from github.com/enygma/gauth, renamed to \TOTP\Auth since it's a pretty generic TOTP class. Will be used for implementing TFA in SMF

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add tfa_secret and tfa_backup columns to the member table

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add Two-Factor Authentication profile area

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Label not lable

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Properly validate TFA members

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add form for logging TFA members in

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Use tfa_backup instead of tfa_secret for cookie

Don't expose tfa_secret in any form to the client side, tfa_backup is bcrypt encrypted and much harder to crack as compared to the plain text tfa_secret

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Fix login popups

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Empty the 2FA cookie on logout as well

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Wipe user's 2FA preferences when using a backup code

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Don't load additional layers when sending a AJAX request to login2

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add 2FA mode settings to Cookie and Session settings page

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Implement 2FA settings

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Fix disabling of 2FA

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Some 2FA setup template improvements

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add enygma/gauth to contributers.txt

Signed-off-by: Shitiz Garg <mail@dragooon.net>