sadnub / laravel-tenancy-passport-demo

Laravel demo with Passport and Tenancy
113 stars 32 forks source link

SOLVED: Send registration Failed #3

Closed AlphaJosh closed 5 years ago

AlphaJosh commented 5 years ago

Sorry, I am a Laravel Noob

I have run ./vendor/bin/phpunit and it is all successful except for the following, what am I doing wrong sorry:

Feature\Auth\Registration ✘ Send registration │ │ Expected status code 201 but received 500. │ Failed asserting that false is true. │ │ /var/www/onroad/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:133 │ /var/www/onroad/tests/Feature/Auth/RegistrationTest.php:36

AlphaJosh commented 5 years ago

The solution was to comment out a line in App/Tenant.php :

app(Connection::class)->statement("SET GLOBAL validate_password_policy=LOW");

sadnub commented 5 years ago

@AlphaJosh Thanks for letting me know! I'll check into that.

sadnub commented 5 years ago

@AlphaJosh See #4 You should be able to clone the Main branch and everything will work. Thanks!