authelia/internal/handlers
Amir Zarrinkafsh 50df949520
[BUGFIX] Prevent crash when email has not been set (#1466)
* [BUGFIX] Prevent crash when email has not been set

a83ccd7188 introduced a regression where if a misconfigured deployment presented an empty emails array setting `Remote-*` headers would fail.

If the emails array is empty we now set the `Remote-Email` header to an empty string.

* Add additional case for unit tests
2020-11-16 22:22:16 +11:00
..
const.go [FEATURE] Add Remote-Name and Remote-Email headers (#1402) 2020-10-26 22:38:08 +11:00
errors.go [MISC] Fixed typo in X-Forwarded headers (#1280) 2020-08-21 11:15:20 +10:00
handler_configuration.go [MISC] Template global config and refactor some /api endpoints (#1135) 2020-06-21 15:40:37 +02:00
handler_configuration_test.go [MISC] Template global config and refactor some /api endpoints (#1135) 2020-06-21 15:40:37 +02:00
handler_firstfactor.go [MISC] Address errors from linter updates (#1308) 2020-09-04 13:20:17 +10:00
handler_firstfactor_test.go [FEATURE] Delay 1FA Authentication (#993) 2020-05-21 00:03:15 +02:00
handler_logout.go Rename org from clems4ever to authelia 2019-12-24 13:14:52 +11:00
handler_logout_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_register_totp.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
handler_register_u2f_step1.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handler_register_u2f_step1_test.go [MISC] Fixed typo in X-Forwarded headers (#1280) 2020-08-21 11:15:20 +10:00
handler_register_u2f_step2.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_reset_password_step1.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_reset_password_step2.go [CI] Add godot linter (#958) 2020-05-02 15:06:39 +10:00
handler_sign_duo.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_duo_test.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_totp.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_totp_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_sign_u2f_step1.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_u2f_step1_test.go [MISC] Fixed typo in X-Forwarded headers (#1280) 2020-08-21 11:15:20 +10:00
handler_sign_u2f_step2.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
handler_sign_u2f_step2_test.go [CI] Add goconst linter (#961) 2020-05-02 18:20:40 +02:00
handler_state.go [MISC] Ignore errcheck recommendations for legacy code (#893) 2020-04-22 13:33:14 +10:00
handler_state_test.go [MISC] Fix goimports ordering for repo (#947) 2020-05-01 16:56:42 +10:00
handler_user_info.go [MISC] Template global config and refactor some /api endpoints (#1135) 2020-06-21 15:40:37 +02:00
handler_user_info_test.go [MISC] Template global config and refactor some /api endpoints (#1135) 2020-06-21 15:40:37 +02:00
handler_verify.go [BUGFIX] Prevent crash when email has not been set (#1466) 2020-11-16 22:22:16 +11:00
handler_verify_test.go [BUGFIX] Prevent crash when email has not been set (#1466) 2020-11-16 22:22:16 +11:00
response.go [SECURITY] Fix Authentication HTTP Status Codes (#959) 2020-05-06 07:27:38 +10:00
totp.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
totp_mock.go [MISC] Update durations to notation format and housekeeping (#824) 2020-04-05 22:37:21 +10:00
types.go [MISC] Template global config and refactor some /api endpoints (#1135) 2020-06-21 15:40:37 +02:00
u2f.go [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
u2f_mock.go [MISC] Update durations to notation format and housekeeping (#824) 2020-04-05 22:37:21 +10:00