Version Notes
Improved compatibility with all versions and Mage_Captcha and Mage_Persistent modules.
Download this release
Release Info
Developer | Clockworkgeek |
Extension | Clockworkgeek_Rememberme |
Version | 0.5.0 |
Comparing to | |
See all releases |
Code changes from version 0.4.0 to 0.5.0
- app/code/community/Clockworkgeek/Loginformfallback/etc/config.xml +37 -0
- app/code/community/Clockworkgeek/Rememberme/etc/config.xml +1 -1
- app/design/frontend/base/default/layout/loginformfallback.xml +34 -0
- app/design/frontend/base/default/layout/rememberme.xml +4 -4
- app/design/frontend/base/default/template/loginformfallback/checkout/login.phtml +157 -0
- app/design/frontend/base/default/template/{rememberme/form → loginformfallback/customer}/login.phtml +12 -15
- app/design/frontend/base/default/template/rememberme/checkbox.phtml +29 -0
- app/etc/modules/Clockworkgeek_Rememberme.xml +14 -0
- package.xml +6 -7
app/code/community/Clockworkgeek/Loginformfallback/etc/config.xml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
*
|
11 |
+
*
|
12 |
+
* @category Customer
|
13 |
+
* @package Clockworkgeek_Rememberme
|
14 |
+
* @author Daniel Deady <daniel@clockworkgeek.com>
|
15 |
+
* @copyright Copyright (c) 2010, Daniel Deady
|
16 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
+
*/
|
18 |
+
-->
|
19 |
+
<!--
|
20 |
+
Provides a default 'form.additional.info' block on select pages when Mage_Captcha is unavailable.
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Clockworkgeek_Loginformfallback>
|
25 |
+
<version>1.0.0</version>
|
26 |
+
</Clockworkgeek_Loginformfallback>
|
27 |
+
</modules>
|
28 |
+
<frontend>
|
29 |
+
<layout>
|
30 |
+
<updates>
|
31 |
+
<loginformfallback>
|
32 |
+
<file>loginformfallback.xml</file>
|
33 |
+
</loginformfallback>
|
34 |
+
</updates>
|
35 |
+
</layout>
|
36 |
+
</frontend>
|
37 |
+
</config>
|
app/code/community/Clockworkgeek/Rememberme/etc/config.xml
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<config>
|
20 |
<modules>
|
21 |
<Clockworkgeek_Rememberme>
|
22 |
-
<version>0.
|
23 |
</Clockworkgeek_Rememberme>
|
24 |
</modules>
|
25 |
<global>
|
19 |
<config>
|
20 |
<modules>
|
21 |
<Clockworkgeek_Rememberme>
|
22 |
+
<version>0.5.0</version>
|
23 |
</Clockworkgeek_Rememberme>
|
24 |
</modules>
|
25 |
<global>
|
app/design/frontend/base/default/layout/loginformfallback.xml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout>
|
3 |
+
<customer_account_login>
|
4 |
+
<reference name="customer_form_login">
|
5 |
+
<action method="setTemplate">
|
6 |
+
<template>loginformfallback/customer/login.phtml</template>
|
7 |
+
</action>
|
8 |
+
<block type="core/text_list" name="form.additional.info" />
|
9 |
+
</reference>
|
10 |
+
</customer_account_login>
|
11 |
+
<checkout_onepage_index>
|
12 |
+
<reference name="checkout.onepage.login">
|
13 |
+
<action method="setTemplate">
|
14 |
+
<template>loginformfallback/checkout/login.phtml</template>
|
15 |
+
</action>
|
16 |
+
<block type="core/text_list" name="form.additional.info" />
|
17 |
+
</reference>
|
18 |
+
</checkout_onepage_index>
|
19 |
+
|
20 |
+
<!-- More handles to fix if necessary
|
21 |
+
|
22 |
+
<customer_account_forgotpassword>
|
23 |
+
<reference name="forgotPassword">
|
24 |
+
<block type="core/text_list" name="form.additional.info" />
|
25 |
+
</reference>
|
26 |
+
</customer_account_forgotpassword>
|
27 |
+
<customer_account_create>
|
28 |
+
<reference name="customer_form_register">
|
29 |
+
<block type="core/text_list" name="form.additional.info" />
|
30 |
+
</reference>
|
31 |
+
</customer_account_create>
|
32 |
+
-->
|
33 |
+
|
34 |
+
</layout>
|
app/design/frontend/base/default/layout/rememberme.xml
CHANGED
@@ -8,14 +8,14 @@
|
|
8 |
</customer_logged_out>
|
9 |
|
10 |
<customer_account_login>
|
11 |
-
<reference name="
|
12 |
-
<
|
13 |
</reference>
|
14 |
</customer_account_login>
|
15 |
|
16 |
<checkout_onepage_index>
|
17 |
-
<reference name="
|
18 |
-
<
|
19 |
</reference>
|
20 |
</checkout_onepage_index>
|
21 |
|
8 |
</customer_logged_out>
|
9 |
|
10 |
<customer_account_login>
|
11 |
+
<reference name="form.additional.info">
|
12 |
+
<block type="core/template" name="customer.form.login.rememberme" template="rememberme/checkbox.phtml" />
|
13 |
</reference>
|
14 |
</customer_account_login>
|
15 |
|
16 |
<checkout_onepage_index>
|
17 |
+
<reference name="form.additional.info">
|
18 |
+
<block type="core/template" name="customer.form.login.rememberme" template="rememberme/checkbox.phtml" />
|
19 |
</reference>
|
20 |
</checkout_onepage_index>
|
21 |
|
app/design/frontend/base/default/template/loginformfallback/checkout/login.phtml
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Customer onepage checkout login form template
|
30 |
+
*
|
31 |
+
* @see app/design/frontend/base/default/template/checkout/onepage/login.phtml
|
32 |
+
*/
|
33 |
+
/** @var $this Mage_Checkout_Block_Onepage_Login */
|
34 |
+
?>
|
35 |
+
<?php /* Extensions placeholder */ ?>
|
36 |
+
<?php echo $this->getChildHtml('checkout.onepage.login.extra')?>
|
37 |
+
<div class="col2-set">
|
38 |
+
<?php echo $this->getChildHtml('login_before')?>
|
39 |
+
<div class="col-1">
|
40 |
+
<h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3>
|
41 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
42 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
43 |
+
<?php else: ?>
|
44 |
+
<p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
|
45 |
+
<?php echo $this->__('Register with us for future convenience:') ?></p>
|
46 |
+
<ul>
|
47 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
48 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
49 |
+
</ul>
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
52 |
+
<ul class="form-list">
|
53 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
54 |
+
<li class="control">
|
55 |
+
<input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
|
56 |
+
</li>
|
57 |
+
<?php endif; ?>
|
58 |
+
<li class="control">
|
59 |
+
<input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label>
|
60 |
+
</li>
|
61 |
+
</ul>
|
62 |
+
<h4><?php echo $this->__('Register and save time!') ?></h4>
|
63 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
64 |
+
<ul class="ul">
|
65 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
66 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
67 |
+
</ul>
|
68 |
+
<?php else: ?>
|
69 |
+
<input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
|
70 |
+
<?php endif; ?>
|
71 |
+
</div>
|
72 |
+
<div class="col-2">
|
73 |
+
<h3><?php echo $this->__('Login') ?></h3>
|
74 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
75 |
+
<form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
|
76 |
+
<fieldset>
|
77 |
+
<?php echo $this->getBlockHtml('formkey'); ?>
|
78 |
+
<h4><?php echo $this->__('Already registered?') ?></h4>
|
79 |
+
<p><?php echo $this->__('Please log in below:') ?></p>
|
80 |
+
<ul class="form-list">
|
81 |
+
<li>
|
82 |
+
<label for="login-email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
83 |
+
<div class="input-box">
|
84 |
+
<input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->escapeHtml($this->getUsername()) ?>" />
|
85 |
+
</div>
|
86 |
+
</li>
|
87 |
+
<li>
|
88 |
+
<label for="login-password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
89 |
+
<div class="input-box">
|
90 |
+
<input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
|
91 |
+
</div>
|
92 |
+
</li>
|
93 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
94 |
+
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
|
95 |
+
</ul>
|
96 |
+
<input name="context" type="hidden" value="checkout" />
|
97 |
+
</fieldset>
|
98 |
+
</form>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
<div class="col2-set">
|
102 |
+
<div class="col-1">
|
103 |
+
<div class="buttons-set">
|
104 |
+
<p class="required"> </p>
|
105 |
+
<?php if ($this->getQuote()->isAllowedGuestCheckout()): ?>
|
106 |
+
<button id="onepage-guest-register-button" type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
107 |
+
<?php elseif ($this->helper('checkout')->isCustomerMustBeLogged()): ?>
|
108 |
+
<button id="onepage-guest-register-button" type="button" class="button" onclick="window.location='<?php echo $this->helper('checkout/url')->getRegistrationUrl();?>'"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
109 |
+
<?php else: ?>
|
110 |
+
<form action="<?php echo $this->getUrl('persistent/index/saveMethod'); ?>">
|
111 |
+
<button id="onepage-guest-register-button" type="submit" class="button"><span><span><?php echo $this->__('Register') ?></span></span></button>
|
112 |
+
</form>
|
113 |
+
<?php endif; ?>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div class="col-2">
|
117 |
+
<div class="buttons-set">
|
118 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
119 |
+
<a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
|
120 |
+
<button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
<script type="text/javascript">
|
125 |
+
//<![CDATA[
|
126 |
+
var loginForm = new VarienForm('login-form', true);
|
127 |
+
$('login-email').observe('keypress', bindLoginPost);
|
128 |
+
$('login-password').observe('keypress', bindLoginPost);
|
129 |
+
function bindLoginPost(evt){
|
130 |
+
if (evt.keyCode == Event.KEY_RETURN) {
|
131 |
+
loginForm.submit();
|
132 |
+
}
|
133 |
+
}
|
134 |
+
function onepageLogin(button)
|
135 |
+
{
|
136 |
+
if(loginForm.validator && loginForm.validator.validate()){
|
137 |
+
button.disabled = true;
|
138 |
+
loginForm.submit();
|
139 |
+
}
|
140 |
+
}
|
141 |
+
//]]>
|
142 |
+
</script>
|
143 |
+
<?php
|
144 |
+
$registerParam = $this->getRequest()->getParam('register');
|
145 |
+
if ($registerParam || $registerParam === ''):
|
146 |
+
?>
|
147 |
+
<script type="text/javascript">
|
148 |
+
//<![CDATA[
|
149 |
+
document.observe("dom:loaded", function() {
|
150 |
+
if($('login:register')) {
|
151 |
+
$('login:register').checked = true;
|
152 |
+
checkout.setMethod();
|
153 |
+
}
|
154 |
+
})
|
155 |
+
//]]>
|
156 |
+
</script>
|
157 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/{rememberme/form → loginformfallback/customer}/login.phtml
RENAMED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category design
|
22 |
* @package base_default
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
@@ -30,13 +30,17 @@
|
|
30 |
*
|
31 |
* @see Mage_Customer_Block_Form_Login
|
32 |
*/
|
|
|
33 |
?>
|
34 |
<div class="account-login">
|
35 |
<div class="page-title">
|
36 |
<h1><?php echo $this->__('Login or Create an Account') ?></h1>
|
37 |
</div>
|
38 |
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
|
|
|
|
39 |
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
|
|
|
40 |
<div class="col2-set">
|
41 |
<div class="col-1 new-users">
|
42 |
<div class="content">
|
@@ -52,7 +56,7 @@
|
|
52 |
<li>
|
53 |
<label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
54 |
<div class="input-box">
|
55 |
-
<input type="text" name="login[username]" value="<?php echo $this->
|
56 |
</div>
|
57 |
</li>
|
58 |
<li>
|
@@ -61,20 +65,10 @@
|
|
61 |
<input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
|
62 |
</div>
|
63 |
</li>
|
64 |
-
<?php
|
65 |
-
|
66 |
-
<div class="input-box">
|
67 |
-
<label for="rememberme" class="input-box">
|
68 |
-
<input type="checkbox" name="login[rememberme]" class="checkbox left" id="rememberme" title="<?php echo $this->__('Remember me') ?>" style="margin-top: 2px" <?php if (Mage::getStoreConfigFlag('customer/rememberme/checked')) echo 'checked="checked"'; ?>/>
|
69 |
-
<?php echo $this->__('Remember me on this computer') ?>
|
70 |
-
</label>
|
71 |
-
<?php if (Mage::getStoreConfigFlag('customer/rememberme/warning')): ?>
|
72 |
-
<p><strong><?php echo $this->__('Caution!') ?></strong> <?php echo $this->__('Anyone using this computer might be able to access your account if you check this box.') ?></p>
|
73 |
-
<?php endif; ?>
|
74 |
-
</div>
|
75 |
-
</li>
|
76 |
-
<?php /* End rememberme customisation */ ?>
|
77 |
</ul>
|
|
|
78 |
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
79 |
</div>
|
80 |
</div>
|
@@ -92,6 +86,9 @@
|
|
92 |
</div>
|
93 |
</div>
|
94 |
</div>
|
|
|
|
|
|
|
95 |
</form>
|
96 |
<script type="text/javascript">
|
97 |
//<![CDATA[
|
20 |
*
|
21 |
* @category design
|
22 |
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
30 |
*
|
31 |
* @see Mage_Customer_Block_Form_Login
|
32 |
*/
|
33 |
+
/** @var $this Mage_Customer_Block_Form_Login */
|
34 |
?>
|
35 |
<div class="account-login">
|
36 |
<div class="page-title">
|
37 |
<h1><?php echo $this->__('Login or Create an Account') ?></h1>
|
38 |
</div>
|
39 |
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
40 |
+
<?php /* Extensions placeholder */ ?>
|
41 |
+
<?php echo $this->getChildHtml('customer.form.login.extra')?>
|
42 |
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
|
43 |
+
<?php echo $this->getBlockHtml('formkey'); ?>
|
44 |
<div class="col2-set">
|
45 |
<div class="col-1 new-users">
|
46 |
<div class="content">
|
56 |
<li>
|
57 |
<label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
58 |
<div class="input-box">
|
59 |
+
<input type="text" name="login[username]" value="<?php echo $this->escapeHtml($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />
|
60 |
</div>
|
61 |
</li>
|
62 |
<li>
|
65 |
<input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
|
66 |
</div>
|
67 |
</li>
|
68 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
69 |
+
<?php echo $this->getChildHtml('persistent.remember.me'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
</ul>
|
71 |
+
<?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
|
72 |
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
73 |
</div>
|
74 |
</div>
|
86 |
</div>
|
87 |
</div>
|
88 |
</div>
|
89 |
+
<?php if (Mage::helper('checkout')->isContextCheckout()): ?>
|
90 |
+
<input name="context" type="hidden" value="checkout" />
|
91 |
+
<?php endif; ?>
|
92 |
</form>
|
93 |
<script type="text/javascript">
|
94 |
//<![CDATA[
|
app/design/frontend/base/default/template/rememberme/checkbox.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://opensource.org/licenses/osl-3.0.php
|
9 |
+
*
|
10 |
+
*
|
11 |
+
* @category Customer
|
12 |
+
* @package Clockworkgeek_Rememberme
|
13 |
+
* @author Daniel Deady <daniel@clockworkgeek.com>
|
14 |
+
* @copyright Copyright (c) 2010, Daniel Deady
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
+
*/
|
17 |
+
/* @var $this Mage_Core_Block_Template */
|
18 |
+
?>
|
19 |
+
<li>
|
20 |
+
<div class="input-box">
|
21 |
+
<label for="rememberme" class="input-box">
|
22 |
+
<input type="checkbox" name="login[rememberme]" class="checkbox left" id="rememberme" title="<?php echo $this->__('Remember me') ?>" style="margin-top: 3px" <?php if (Mage::getStoreConfigFlag('customer/rememberme/checked')) echo 'checked="checked"'; ?>/>
|
23 |
+
<?php echo $this->__('Remember me on this computer') ?>
|
24 |
+
</label>
|
25 |
+
<?php if (Mage::getStoreConfigFlag('customer/rememberme/warning')): ?>
|
26 |
+
<p><strong><?php echo $this->__('Caution!') ?></strong> <?php echo $this->__('Anyone using this computer might be able to access your account if you check this box.') ?></p>
|
27 |
+
<?php endif; ?>
|
28 |
+
</div>
|
29 |
+
</li>
|
app/etc/modules/Clockworkgeek_Rememberme.xml
CHANGED
@@ -21,6 +21,20 @@
|
|
21 |
<Clockworkgeek_Rememberme>
|
22 |
<active>true</active>
|
23 |
<codePool>community</codePool>
|
|
|
|
|
|
|
24 |
</Clockworkgeek_Rememberme>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
</modules>
|
26 |
</config>
|
21 |
<Clockworkgeek_Rememberme>
|
22 |
<active>true</active>
|
23 |
<codePool>community</codePool>
|
24 |
+
<depends>
|
25 |
+
<Clockworkgeek_Loginformfallback/>
|
26 |
+
</depends>
|
27 |
</Clockworkgeek_Rememberme>
|
28 |
+
|
29 |
+
<!-- Workaround for when the captcha module is missing or disabled -->
|
30 |
+
<Clockworkgeek_Loginformfallback>
|
31 |
+
<active>true</active>
|
32 |
+
<codePool>community</codePool>
|
33 |
+
</Clockworkgeek_Loginformfallback>
|
34 |
+
<Mage_Captcha>
|
35 |
+
<depends>
|
36 |
+
<Clockworkgeek_Loginformfallback/>
|
37 |
+
</depends>
|
38 |
+
</Mage_Captcha>
|
39 |
</modules>
|
40 |
</config>
|
package.xml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Clockworkgeek_Rememberme</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Add a "remember me" option to login forms.</summary>
|
10 |
-
<description>Add a "remember me" option to login forms. Overrides default forms with those in "design/frontend/base/default/template/rememberme/
|
11 |
-
<notes>
|
12 |
-
</notes>
|
13 |
<authors><author><name>clockworkgeek</name><user>nonproffessional</user><email>nonproffessional@clockworkgeek.com</email></author></authors>
|
14 |
-
<date>2014-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="Rememberme"><dir name="Model"><file name="Cookie.php" hash="9b292945fb1133b52c4b239b48fdebab"/></dir><dir name="etc"><file name="config.xml" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Clockworkgeek_Rememberme</name>
|
4 |
+
<version>0.5.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Add a "remember me" option to login forms.</summary>
|
10 |
+
<description>Add a "remember me" option to login forms. Overrides default forms with those in "design/frontend/base/default/template/rememberme/".</description>
|
11 |
+
<notes>Improved compatibility with all versions and Mage_Captcha and Mage_Persistent modules.</notes>
|
|
|
12 |
<authors><author><name>clockworkgeek</name><user>nonproffessional</user><email>nonproffessional@clockworkgeek.com</email></author></authors>
|
13 |
+
<date>2014-11-07</date>
|
14 |
+
<time>17:19:37</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="Loginformfallback"><dir name="etc"><file name="config.xml" hash="2578ddb7451310a1b36ee2be2d9fa1c2"/></dir></dir><dir name="Rememberme"><dir name="Model"><file name="Cookie.php" hash="9b292945fb1133b52c4b239b48fdebab"/></dir><dir name="etc"><file name="config.xml" hash="d91aec4705b1f4e8d6b934568517aee2"/><file name="system.xml" hash="7302348f852d9db069e3336a9c7f20ee"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="loginformfallback.xml" hash="a948aeb2b7ba695ae3ec8d63436547f1"/><file name="rememberme.xml" hash="83de2ac36de0175757669cde33414982"/></dir><dir name="template"><dir name="loginformfallback"><dir name="checkout"><file name="login.phtml" hash="84561620d67b8019b4eb86db259b4148"/></dir><dir name="customer"><file name="login.phtml" hash="779575f37b9f49fff8868c8cab284ac1"/></dir></dir><dir name="rememberme"><file name="checkbox.phtml" hash="2d4eb0c8b5455e435162d73ac40ab5be"/><dir name="form"><file name="mini.login.phtml" hash="0b239b0ece858335fa0708304e027217"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clockworkgeek_Rememberme.xml" hash="4615cfb14e0d8f0296e8695e86bc7564"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Clockworkgeek_Rememberme.csv" hash="5346ff4284ea8a4a8f504d1668981e60"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|