diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-17 03:16:16 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-17 03:16:16 +0000 |
commit | c22b520e467e24fef339b2ae31a3bb214ca42e8a (patch) | |
tree | 53820b65c3129c576174bfecfa68343315066e7a /modules/user/user.module | |
parent | 65654b29e8987f8c2a58fcb5e6dc090d80827887 (diff) | |
download | brdo-c22b520e467e24fef339b2ae31a3bb214ca42e8a.tar.gz brdo-c22b520e467e24fef339b2ae31a3bb214ca42e8a.tar.bz2 |
#365597 by mfb, Jody Lynn: Don't show access denied when logging in via OpenID to user/login.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 3cf6871f3..dd05a9efd 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3142,3 +3142,11 @@ function user_modules_uninstalled($modules) { ->execute(); } } + +/** + * Rewrite the destination to prevent redirecting to login page after login. + */ +function user_login_destination() { + $destination = drupal_get_destination(); + return $destination == 'destination=user%2Flogin' ? 'destination=user' : $destination; +} |