Make Account Center only usable when logged in
[blerg.git] / www / jssrc / blerg / EmailForm.js
index 4ee731d..940b8e6 100644 (file)
@@ -1,8 +1,11 @@
 enyo.kind({
     name: 'blerg.EmailForm',
+    handlers: {
+        onLogin: "loginStatusChange"
+    },
     components: [
         {name: 'emailRegisterForm', components: [
-            {content: "Enter your email address to get daily digest updates of your feed.", tag: 'p'},
+            {content: "Register an email address to get daily digest updates of your feed. We can also use this address to send you a password recovery link if you forget your password.", tag: 'p'},
             {tag: 'form', onsubmit: 'registerEmail', components: [
                 {kind: 'onyx.InputDecorator', classes: 'recovery', components: [
                     {kind: 'onyx.Input', name: 'email'}
@@ -91,5 +94,8 @@ enyo.kind({
         });
 
         req.go();
+    },
+    loginStatusChange: function(inSender, inEvent) {
+        this.fetchEmailStatus();
     }
 });