]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/UserRepo.php
Made email confirmations work with LDAP auth
[bookstack] / app / Repos / UserRepo.php
index d5a4b1503ccf0735efbfef90f9ad87a47591522d..9b5c8d7e7f20c13816ac421664b54192cb7b187a 100644 (file)
@@ -106,7 +106,8 @@ class UserRepo
         return $this->user->forceCreate([
             'name'     => $data['name'],
             'email'    => $data['email'],
-            'password' => bcrypt($data['password'])
+            'password' => bcrypt($data['password']),
+            'email_confirmed' => false
         ]);
     }