[feature/passwords] Integrate convert_flag with db auth provider

PHPBB3-11610