From e18f1fec334f23c43a4bdf764964aa09f4f1f483 Mon Sep 17 00:00:00 2001
From: chan24 <aakaschan24@gmail.com>
Date: Fri, 21 Apr 2017 23:30:17 +0530
Subject: [PATCH] register activity toast

---
 .../example/chan24/smartplanner/RegisterActivity.java    | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/app/src/main/java/com/example/chan24/smartplanner/RegisterActivity.java b/app/src/main/java/com/example/chan24/smartplanner/RegisterActivity.java
index 10d30a1..2354046 100644
--- a/app/src/main/java/com/example/chan24/smartplanner/RegisterActivity.java
+++ b/app/src/main/java/com/example/chan24/smartplanner/RegisterActivity.java
@@ -49,12 +49,17 @@ public class RegisterActivity extends AppCompatActivity {
                     Toast.makeText(getApplicationContext(),"Enter Name",Toast.LENGTH_SHORT).show();
                     return;
                 }
-                else if (p.isEmpty()){
+                if (p.isEmpty()){
                     Toast.makeText(getApplicationContext(),"Enter Password",Toast.LENGTH_SHORT).show();
                     return;
                 }
 
-                else if (m.isEmpty()){
+                if (p.length()<6){
+                    Toast.makeText(getApplicationContext(),"Password must have greater than 6 characters",Toast.LENGTH_SHORT).show();
+                    return;
+                }
+
+                 if (m.isEmpty()){
                     Toast.makeText(getApplicationContext(),"Enter Password",Toast.LENGTH_SHORT).show();
                     return;
                 }
-- 
GitLab