mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
feat: #10000 用户取消邮箱验证
This commit is contained in:
parent
ab580a1c91
commit
d1dc9adf0d
@ -34,7 +34,6 @@ class UsersController extends Controller
|
|||||||
$validator = Validator::make($request->all(), [
|
$validator = Validator::make($request->all(), [
|
||||||
'name' => 'required|string|max:191|unique:users,name',
|
'name' => 'required|string|max:191|unique:users,name',
|
||||||
'password' => 'required|string|min:8|confirmed',
|
'password' => 'required|string|min:8|confirmed',
|
||||||
'email' => 'email',
|
|
||||||
'role_name' => 'required|string|exists:roles,name'
|
'role_name' => 'required|string|exists:roles,name'
|
||||||
]);
|
]);
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
@ -70,7 +69,6 @@ class UsersController extends Controller
|
|||||||
],
|
],
|
||||||
// 'old_password' => 'sometimes|required|string|min:8',
|
// 'old_password' => 'sometimes|required|string|min:8',
|
||||||
'password' => 'sometimes|string|min:8|confirmed',
|
'password' => 'sometimes|string|min:8|confirmed',
|
||||||
'email' => 'sometimes|email',
|
|
||||||
'role_name' => 'sometimes|required|string|exists:roles,name'
|
'role_name' => 'sometimes|required|string|exists:roles,name'
|
||||||
]);
|
]);
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class CreateUsersTable extends Migration
|
|||||||
Schema::create('users', function (Blueprint $table) {
|
Schema::create('users', function (Blueprint $table) {
|
||||||
$table->bigIncrements('id');
|
$table->bigIncrements('id');
|
||||||
$table->string('name')->unique();
|
$table->string('name')->unique();
|
||||||
$table->string('email')->nullable()->unique();
|
$table->string('email')->nullable(true);
|
||||||
$table->timestamp('email_verified_at')->nullable();
|
$table->timestamp('email_verified_at')->nullable();
|
||||||
$table->string('password');
|
$table->string('password');
|
||||||
$table->string('api_token', 80)->unique();
|
$table->string('api_token', 80)->unique();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user