Customer Sign Up Bug Fixed

This commit is contained in:
prashant-webkul 2018-08-21 19:02:12 +05:30
parent ab172592db
commit 22b465cbed
3 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ class CreateCustomersTable extends Migration
$table->string('first_name'); $table->string('first_name');
$table->string('last_name'); $table->string('last_name');
$table->enum('gender', ['Male', 'Female']); $table->enum('gender', ['Male', 'Female']);
$table->date('date_of_birth'); $table->date('date_of_birth')->nullable();
$table->string('phone')->unique()->nullable(); $table->string('phone')->unique()->nullable();
$table->string('email')->unique(); $table->string('email')->unique();
$table->string('password'); $table->string('password');

View File

@ -36,13 +36,13 @@
<div class="control-group" :class="[errors.has('password') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('password') ? 'has-error' : '']">
<label for="password">{{ __('shop::app.customer.signup-form.password') }}</label> <label for="password">{{ __('shop::app.customer.signup-form.password') }}</label>
<input type="password" class="control" name="password" v-validate="'required|min:8'" ref="password"> <input type="password" class="control" name="password" v-validate="'required|min:6'" ref="password">
<span class="control-error" v-if="errors.has('password')">@{{ errors.first('password') }}</span> <span class="control-error" v-if="errors.has('password')">@{{ errors.first('password') }}</span>
</div> </div>
<div class="control-group" :class="[errors.has('confirm_password') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('confirm_password') ? 'has-error' : '']">
<label for="confirm_password">{{ __('shop::app.customer.signup-form.confirm_pass') }}</label> <label for="confirm_password">{{ __('shop::app.customer.signup-form.confirm_pass') }}</label>
<input type="password" class="control" name="confirm_password" v-validate="'required|min:8|confirm:$password'"> <input type="password" class="control" name="password_confirmation" v-validate="'required|min:6|confirmed:password'">
<span class="control-error" v-if="errors.has('confirm_password')">@{{ errors.first('confirm_password') }}</span> <span class="control-error" v-if="errors.has('confirm_password')">@{{ errors.first('confirm_password') }}</span>
</div> </div>

File diff suppressed because one or more lines are too long