Skip to content

Commit

Permalink
Update Login
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Apr 5, 2024
1 parent f226280 commit d654df1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions wp-content/themes/academyAfrica/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ function activate_new_user_action(){
}

function custom_login_page() {
$login_page = home_url( "/academy-africa-login" );
$login_page = home_url( "/login" );
$to_redirect = array("lostpassword");
$reset_password_page = home_url( '/academy-africa-login?action=lostpassword' );
$reset_password_page = home_url( '/login?action=lostpassword' );
$check_path = parse_url($_SERVER['REQUEST_URI'])['path'];
check_password_reset_action();
check_register_action();
Expand All @@ -487,5 +487,5 @@ function custom_login_page() {
add_action('init','custom_login_page');
add_action( 'login_form_middle', 'add_lost_password_link' );
function add_lost_password_link() {
return '<a class="remember-me" href="/academy-africa-login?action=lostpassword">Lost Password?</a>';
return '<a class="remember-me" href="/login?action=lostpassword">Lost Password?</a>';
}
2 changes: 1 addition & 1 deletion wp-content/themes/academyAfrica/includes/widgets/hero.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected function render()
</div>
<script>
function register(){
window.location.href = "/academy-africa-login?action=register"
window.location.href = "/login?action=register"
}
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/academyAfrica/template-parts/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<?php wp_login_form(); ?>
<footer style="display: flex; justify-content: space-between;" class="modal-footers">
<div>
<span>New to academy.AFRICA? </span><a class="remember-me" href="/academy-africa-login?action=register" style="margin-left: 4px; font-size: 16px;">Register
<span>New to academy.AFRICA? </span><a class="remember-me" href="/login?action=register" style="margin-left: 4px; font-size: 16px;">Register
now</a>
</div>
<a style="font-size: 14px; color: var(--Black, #000);" href="javascript:history.back()">Back</a>
Expand Down

0 comments on commit d654df1

Please sign in to comment.