diff --git a/.meteor/packages b/.meteor/packages index 6d89317..6d0448b 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -19,4 +19,5 @@ browser-policy meteorhacks:npm -npm-container \ No newline at end of file +npm-container +themeteorchef:bert diff --git a/.meteor/versions b/.meteor/versions index ca79ac6..98307e8 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -68,6 +68,7 @@ spacebars-compiler@1.0.4 srp@1.0.2 standard-app-packages@1.0.4 templating@1.0.11 +themeteorchef:bert@1.0.1 themeteorchef:jquery-validation@1.13.1 tracker@1.0.5 twbs:bootstrap@3.3.1_2 diff --git a/client/controllers/authenticated/header.js b/client/controllers/authenticated/header.js index b05e0cf..ba9c4cc 100644 --- a/client/controllers/authenticated/header.js +++ b/client/controllers/authenticated/header.js @@ -37,7 +37,9 @@ Template.header.events({ 'click .logout': function(){ Meteor.logout(function(error){ if(error){ - alert(error.reason); + Bert.alert(error.reason, 'danger'); + } else { + Bert.alert('Succesfully logged out!', 'success'); } }); } diff --git a/client/controllers/public/login.js b/client/controllers/public/login.js index e171458..ddf68fd 100644 --- a/client/controllers/public/login.js +++ b/client/controllers/public/login.js @@ -45,7 +45,9 @@ Template.login.rendered = function(){ // Log the user in. Meteor.loginWithPassword(user.email, user.password, function(error){ if(error){ - alert(error.reason); + Bert.alert(error.reason, 'danger'); + } else { + Bert.alert('Logged in!', 'success'); } }); } diff --git a/client/controllers/public/recover-password.js b/client/controllers/public/recover-password.js index c68db49..56398b0 100644 --- a/client/controllers/public/recover-password.js +++ b/client/controllers/public/recover-password.js @@ -37,7 +37,9 @@ Template.recoverPassword.rendered = function(){ // Call the send reset password email method. Accounts.forgotPassword({email: email}, function(error){ if(error){ - alert(error.reason); + Bert.alert(error.reason, 'danger'); + } else { + Bert.alert('Check your inbox for a reset link!', 'success'); } }); } diff --git a/client/controllers/public/reset-password.js b/client/controllers/public/reset-password.js index c15a2fd..5fb31a1 100644 --- a/client/controllers/public/reset-password.js +++ b/client/controllers/public/reset-password.js @@ -46,8 +46,9 @@ Template.resetPassword.rendered = function(){ // Reset the user's password. Accounts.resetPassword(token, password, function(error){ if(error){ - alert(error.reason); + Bert.alert(error.reason, 'danger'); } else { + Bert.alert('Password successfully reset!', 'success'); Session.set('resetPasswordToken', null); } }); diff --git a/client/controllers/public/signup.js b/client/controllers/public/signup.js index 0498a91..629ec6b 100644 --- a/client/controllers/public/signup.js +++ b/client/controllers/public/signup.js @@ -47,7 +47,9 @@ Template.signup.rendered = function(){ // Create the user's account. Accounts.createUser({email: user.email, password: user.password}, function(error){ if(error){ - alert(error.reason); + Bert.alert(error.reason, 'danger'); + } else { + Bert.alert('Welcome!', 'success'); } }); } diff --git a/client/layouts/layout-default.html b/client/layouts/layout-default.html index 85934e9..a5090e9 100644 --- a/client/layouts/layout-default.html +++ b/client/layouts/layout-default.html @@ -1,4 +1,5 @@