Only hide the login box when OAuth enabled

Otherwise there is no way to login!
Add argument to account_pending

Redmine 2.4 adds an argument to the account_pending function.  Check if
this installation is at least version 2.4, and if so, call account_pending
with the additional argument.