Project

General

Profile

Actions

Patch #34071

closed

Handle AuthSourceExceptions in User.try_to_login

Added by Jens Krämer over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Accounts / authentication
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

this patch changes User.try_to_login to catch and log AuthSourceExceptions, and introduces User.try_to_login! which replicates the original behaviour. Before that change, any places outside of AccountController (which already handles the exceptions) that were using User.try_to_login threw an error i.e. in case of an unreachable LDAP server, instead of just treating the user as unauthenticated.


Files


Related issues

Blocked by Redmine - Patch #34339: Update net-ldap to 0.17ClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF