[ticket/13248] Login functions need to use provider collection for retrieving provider

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13248
You do not want `$provider_name = (bool) true`, so you are using this wrong