don't configure authentication_method if devise isn't used (fix #3467)