瀏覽代碼

login/logout/register notifications

Nathaniel van Diepen 10 年之前
父節點
當前提交
aaec1a5d60
共有 3 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      data/pages/login.template
  2. 1 0
      data/pages/logout.template
  3. 1 0
      data/pages/register.template

+ 1 - 0
data/pages/login.template

@@ -29,6 +29,7 @@
 				apiCall(data,function(d){
 					if(!d.error){
 						setKey(d.key);
+						notify('login','You have logged in successfully');
 						back(true);
 					}else{
 						setKey(null);

+ 1 - 0
data/pages/logout.template

@@ -1,4 +1,5 @@
 <script>
 	setKey(null);
+	notify('logout','You have successfully logged out');
 	replaceState('page-index');
 </script>

+ 1 - 0
data/pages/register.template

@@ -44,6 +44,7 @@
 					apiCall(data,function(d){
 						if(!d.error){
 							setKey(d.key);
+							notify('register','You have successfully registered');
 							loadState('page-index');
 						}else{
 							setKey(null);