Webmu_LoginNotifier - Version 0.2.1

Version Notes

Release notes:

v. 0.2.1
- Bug fix on success login event observer method.

v. 0.2.0
- Grid with custom cells rendering
- Used the Event Observer Methods for custom actions

v. 0.1.0
- initial public release of Login Notifier

Download this release

Release Info

Developer Webmu
Extension Webmu_LoginNotifier
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.1

app/code/community/Webmu/LoginNotifier/Model/Observer.php CHANGED
@@ -18,17 +18,17 @@
18
  */
19
  class Webmu_LoginNotifier_Model_Observer {
20
 
21
- public function successLogin( $user) {
22
 
23
- if ($user->getId()) {
24
  $this->_addLoginNotification(array(
25
- "username" => $user->getUsername(),
26
  "result" => 1
27
  )
28
  );
29
 
30
  if( Mage::getStoreConfig('loginnotifier/success/general_success_login') == 'enabled'){
31
- $this->sendSuccessNotificationEmail($user->getUsername());
32
  }
33
  }
34
  }
18
  */
19
  class Webmu_LoginNotifier_Model_Observer {
20
 
21
+ public function successLogin( $observer) {
22
 
23
+ if ($observer->getEvent()->getUser()) {
24
  $this->_addLoginNotification(array(
25
+ "username" => $observer->getEvent()->getUser()->getUsername(),
26
  "result" => 1
27
  )
28
  );
29
 
30
  if( Mage::getStoreConfig('loginnotifier/success/general_success_login') == 'enabled'){
31
+ $this->sendSuccessNotificationEmail($observer->getEvent()->getUser()->getUsername());
32
  }
33
  }
34
  }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webmu_LoginNotifier</name>
4
- <version>0.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -18,6 +18,9 @@ A Login Report is available on Reports menu in Magento Admin Panel.&#xD;
18
  If you see multiple attempts to login at times you are not logged on to the site, this means someone is attempting to brute force their way into your site, and you should ban the offending IP address from your site. Especially if they are trying multiple names, or sending them rapidly, one after another.</description>
19
  <notes>Release notes:&#xD;
20
  &#xD;
 
 
 
21
  v. 0.2.0&#xD;
22
  - Grid with custom cells rendering&#xD;
23
  - Used the Event Observer Methods for custom actions&#xD;
@@ -25,9 +28,9 @@ v. 0.2.0&#xD;
25
  v. 0.1.0&#xD;
26
  - initial public release of Login Notifier</notes>
27
  <authors><author><name>Webmu</name><user>webmu</user><email>info@webmu.it</email></author></authors>
28
- <date>2016-02-03</date>
29
- <time>11:14:23</time>
30
- <contents><target name="magecommunity"><dir name="Webmu"><dir name="LoginNotifier"><dir name="Block"><dir name="Adminhtml"><dir name="Report"><file name="Grid.php" hash="1686ae5de8b408ac5af7f3b0b4d94842"/><dir name="Renderer"><file name="Created.php" hash="b3e5a03f8a0918992fd0a36c5e6b238b"/><file name="Info.php" hash="2177c4d89ea2cdd9c7d698f65d93dc13"/><file name="Result.php" hash="1b4e3bb2537621412e35c55f0982531e"/></dir></dir><file name="Report.php" hash="1447817f2ecf54a3a8edf576fb7c8dd8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="8c064319279e925427261fa1e23cd9f8"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Report"><file name="Collection.php" hash="798f9f6277fe8cbe9e62138f24afce3b"/></dir><file name="Report.php" hash="a514d8ed7d920cb9dbb830864894fc91"/></dir><file name="Observer.php" hash="9a340e8675b622e2df7ec66fd3faaaa7"/><file name="Report.php" hash="bf80985e5de55e8b1796190edf4fca1b"/><file name="ResultOption.php" hash="50eb871000d878fb9c0df6ba8809ad75"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="General"><file name="Option.php" hash="dbece10127ac2faf0b581b6b5a3066e9"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReportController.php" hash="884f7ec59c7948e839caca36943b5429"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3b6b78f4be94b9f63ca0405ea233e241"/><file name="config.xml" hash="4baa83137db18ebeda7ee5ba7d7dd286"/><file name="system.xml" hash="04b7c6c9e6ed6c9929f4fe46f5d1446e"/></dir><dir name="sql"><dir name="loginnotifier_setup"><file name="mysql4-install-0.1.0.php" hash="105c2a3fbf42e2ddd4a28a714336ed50"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webmu_LoginNotifier.xml" hash="fba4a225627793ada87cc4c1a42da5f9"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="loginnotifier_notificationemail_failed.html" hash="c033f69b1171c38dff572d2416379d7b"/><file name="loginnotifier_notificationemail_success.html" hash="9f00e8d92c2f3977bed3d5897ea3f812"/></dir></dir><file name="Webmu_LoginNotifier.csv" hash="9d10578f91f7a213f21b1c1d5cec599a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginnotifier.xml" hash="377b33e835ebe58438938abad96e38e1"/></dir></dir></dir></dir></target></contents>
31
  <compatible/>
32
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
33
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webmu_LoginNotifier</name>
4
+ <version>0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
18
  If you see multiple attempts to login at times you are not logged on to the site, this means someone is attempting to brute force their way into your site, and you should ban the offending IP address from your site. Especially if they are trying multiple names, or sending them rapidly, one after another.</description>
19
  <notes>Release notes:&#xD;
20
  &#xD;
21
+ v. 0.2.1&#xD;
22
+ - Bug fix on success login event observer method.&#xD;
23
+ &#xD;
24
  v. 0.2.0&#xD;
25
  - Grid with custom cells rendering&#xD;
26
  - Used the Event Observer Methods for custom actions&#xD;
28
  v. 0.1.0&#xD;
29
  - initial public release of Login Notifier</notes>
30
  <authors><author><name>Webmu</name><user>webmu</user><email>info@webmu.it</email></author></authors>
31
+ <date>2016-02-14</date>
32
+ <time>18:27:57</time>
33
+ <contents><target name="magecommunity"><dir name="Webmu"><dir name="LoginNotifier"><dir name="Block"><dir name="Adminhtml"><dir name="Report"><file name="Grid.php" hash="1686ae5de8b408ac5af7f3b0b4d94842"/><dir name="Renderer"><file name="Created.php" hash="b3e5a03f8a0918992fd0a36c5e6b238b"/><file name="Info.php" hash="2177c4d89ea2cdd9c7d698f65d93dc13"/><file name="Result.php" hash="1b4e3bb2537621412e35c55f0982531e"/></dir></dir><file name="Report.php" hash="1447817f2ecf54a3a8edf576fb7c8dd8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="8c064319279e925427261fa1e23cd9f8"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Report"><file name="Collection.php" hash="798f9f6277fe8cbe9e62138f24afce3b"/></dir><file name="Report.php" hash="a514d8ed7d920cb9dbb830864894fc91"/></dir><file name="Observer.php" hash="709ce2c49b74a83c078ed2ac199616cf"/><file name="Report.php" hash="bf80985e5de55e8b1796190edf4fca1b"/><file name="ResultOption.php" hash="50eb871000d878fb9c0df6ba8809ad75"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="General"><file name="Option.php" hash="dbece10127ac2faf0b581b6b5a3066e9"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReportController.php" hash="884f7ec59c7948e839caca36943b5429"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3b6b78f4be94b9f63ca0405ea233e241"/><file name="config.xml" hash="4baa83137db18ebeda7ee5ba7d7dd286"/><file name="system.xml" hash="04b7c6c9e6ed6c9929f4fe46f5d1446e"/></dir><dir name="sql"><dir name="loginnotifier_setup"><file name="mysql4-install-0.1.0.php" hash="105c2a3fbf42e2ddd4a28a714336ed50"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webmu_LoginNotifier.xml" hash="fba4a225627793ada87cc4c1a42da5f9"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="loginnotifier_notificationemail_failed.html" hash="c033f69b1171c38dff572d2416379d7b"/><file name="loginnotifier_notificationemail_success.html" hash="9f00e8d92c2f3977bed3d5897ea3f812"/></dir></dir><file name="Webmu_LoginNotifier.csv" hash="9d10578f91f7a213f21b1c1d5cec599a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginnotifier.xml" hash="377b33e835ebe58438938abad96e38e1"/></dir></dir></dir></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
36
  </package>