added country code added to the front end

This commit is contained in:
Aqeeb Imtiaz Harun
2018-06-06 16:03:05 +08:00
parent 670eb012ed
commit c7b8cd76c0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class AuthController extends Controller
$validator = Validator::make($credentials, $rules);
if($validator->fails()){
return response()->json(['success'=> false, 'message'=> 'Incorrect length of mobile number or the number already exists. The minimum length should be 10.' ], 400);
return response()->json(['success'=> false, 'message'=> 'The minimum length should be 10.' ], 400);
}
// create user if not exist
+3 -3
View File
@@ -38,8 +38,8 @@
</div>
<select class="form-element">
<option value="">Select your country</option>
<option value="1" selected>Malaysia</option>
<option value="2">China</option>
<option value="1" selected>Malaysia +6</option>
<option value="2">China +86</option>
</select>
</div>
@@ -47,7 +47,7 @@
<div style="position:absolute; top:10px">
<a class="fa fa-phone"></a>
</div>
<input id="mobile" type="text" class="form-element" placeholder="Enter your phone number" required />
<input id="mobile" type="tel" class="form-element" placeholder="Enter your phone number" required />
</div>
</div>