Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commite893ad9bcbaff8da4048fb6db465a70d263e40aa (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-07-13 19:05:20 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-07-13 19:05:20 +0300
Filesde06d35d1841086c54904c55f8b9176650f4559b
tues-interns-2020-e893ad9bcbaff8da4048fb6db465a70d263e40aa.tar
tues-interns-2020-e893ad9bcbaff8da4048fb6db465a70d263e40aa.tar.gz
tues-interns-2020-e893ad9bcbaff8da4048fb6db465a70d263e40aa.zip
Parentaa4c970a4236a58d769d1c93943c0146f96995cb (diff)
Fixed login and register templates of carmag theme to comply with back-end requirements.
2 files changed, 10 insertions, 9 deletions
-rw-r--r--wp-content/themes/carmag/templates/login.php9
-rwxr-xr-xwp-content/themes/carmag/templates/register.php10
diff --git a/wp-content/themes/carmag/templates/login.php b/wp-content/themes/carmag/templates/login.php
index daca7dd..51b470f 100644
--- a/wp-content/themes/carmag/templates/login.php
+++ b/wp-content/themes/carmag/templates/login.php
@@ -1,9 +1,9 @@
-<?php
+<?php
/**
* Template Name: Login
*
* Custom login template for the theme
- *
+ *
* @since v1.0.0
* @package CarMag
*/
@@ -17,9 +17,10 @@ get_header(); ?>
<div class="column small-12 medium-8">
<div id="primary" class="content-area">
<main id="main" class="site-main">
- <form method="POST" action="<?php esc_url( plugins_url( 'register-user-class.php', __FILE__ ) ) ?>" class="login-form">
+ <form method="POST" action="<?php echo admin_url('admin-post.php') ?>" class="login-form">
+ <input type="hidden" name="action" value="process_login">
<h1>Login</h1>
-
+
<input type="hidden" name="action" value="process_form">
<input class="form-input" type="email" name="email" id="email" placeholder="Email" required autofocus>
<input class="form-input" type="password" name="password" id="password" placeholder="Password" required>
diff --git a/wp-content/themes/carmag/templates/register.php b/wp-content/themes/carmag/templates/register.php
index c35d0a1..ecfba8b 100755
--- a/wp-content/themes/carmag/templates/register.php
+++ b/wp-content/themes/carmag/templates/register.php
@@ -1,9 +1,9 @@
-<?php
+<?php
/**
* Template Name: Register
*
* Custom register template for the theme
- *
+ *
* @since v1.0.0
* @package CarMag
*/
@@ -16,10 +16,10 @@ get_header(); ?>
<div class="column small-12 medium-8">
<div id="primary" class="content-area">
<main id="main" class="site-main">
- <form method="POST" action="<?php esc_url( plugins_url( 'register-user-class.php', __FILE__ ) ) ?>" class="register-form">
+ <form method="POST" action="<?php echo admin_url('admin-post.php') ?>" class="register-form">
+ <input type="hidden" name="action" value="process_register">
<h1>Create Account</h1>
-
- <input type="hidden" name="action" value="process_form">
+
<input class="form-input" type="email" name="email" id="email" placeholder="Email" required autofocus>
<input class="form-input" type="text" name="name" id="name" placeholder="Name" required>
<input class="form-input" type="password" name="password" id="password" placeholder="Password" required>