Title: Cause Fail Login
Last modified: April 4, 2019

---

# Cause Fail Login

 *  [sallisondri](https://wordpress.org/support/users/sallisondri/)
 * (@sallisondri)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/cause-fail-login/)
 * I would like to cause login success or failure based on external data.
 * I have the following working:
    um_on_login_before_redirect (hook) – calls Restful
   API and returns a bunch of data including whether the member is currently active
   or not.
 * Would like the standard redirect on Active currently OK. Would like to force 
   member to be logged out and a different redirect page (not the standard logout
   page) if not Active.
 * Can’t find a pre-login hook.
 * Thx.

The topic ‘Cause Fail Login’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [Logout](https://wordpress.org/support/topic-tag/logout/)

 * 0 replies
 * 1 participant
 * Last reply from: [sallisondri](https://wordpress.org/support/users/sallisondri/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/cause-fail-login/)
 * Status: not resolved