Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 3a40333

Browse files
author
Mohammad Shahbaz Alam
committed
Add back button to magic form and nit
1 parent c12dae8 commit 3a40333

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

.DS_Store

0 Bytes
Binary file not shown.

assets/css/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
border-radius: 3px;
4141
}
4242

43-
4443
.login .magic-form input{
4544
width: 100%;
4645
min-height: 40px;

includes/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @category Class
77
* @package Magic
88
* @subpackage WordPress
9-
* @author Magic <hello@magic.link>
9+
* @author Magic <support@magic.link>
1010
* @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
1111
* @link
1212
* @since 0.0.0

includes/class-login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @category Class
77
* @package Magic
88
* @subpackage WordPress
9-
* @author Magic <hello@magic.link>
9+
* @author Magic <support@magic.link>
1010
* @license https://opensource.org/licenses/GPL-3.0 GPL-3.0-only
1111
* @link
1212
* @since 0.0.0

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
=== Login by Magic ===
2-
Contributors: magiclabs
32
Tags: passwordless, magiclink, emailmagiclink, authentication, security, magic
43
Requires at least: 5.5.1
54
Tested up to: 5.8
65
Requires PHP: 7.3
76
License: GPL-3.0-only
87
License URI: https://opensource.org/licenses/GPL-3.0
8+
Stable tag: 1.0.0
9+
Contributors: magiclabs
910

1011
Login by Magic plugin replaces the standard WordPress login form with one powered by Magic that enables passwordless email magic link login.
1112

templates/form-login.php

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,26 @@
66
<input type="email" id="user_email" name="email" required="required" placeholder="Enter your email" />
77
<button type="submit">Send</button>
88
</form>
9-
</div>
9+
</div>
10+
<!-- From wp-login.php line 285-305 -->
11+
<p id="backtoblog">
12+
<?php
13+
$html_link = sprintf(
14+
'<a href="%s">%s</a>',
15+
esc_url( home_url( '/' ) ),
16+
sprintf(
17+
/* translators: %s: Site title. */
18+
_x( '&larr; Go to %s', 'site' ),
19+
get_bloginfo( 'title', 'display' )
20+
)
21+
);
22+
/**
23+
* Filter the "Go to site" link displayed in the login page footer.
24+
*
25+
* @since 5.7.0
26+
*
27+
* @param string $link HTML link to the home URL of the current site.
28+
*/
29+
echo apply_filters( 'login_site_html_link', $html_link );
30+
?>
31+
</p>

0 commit comments

Comments
 (0)