-
Notifications
You must be signed in to change notification settings - Fork 109
Auth always returns False #31
Comments
here is my model |
never mind I saw my mistake. I used varchar55 |
How to solve this problem ? config/app.php 'providers' => array(
config/auth.phpreturn array( controller ALWAYS FLASE ... |
I solve this by changing the size of the db password character. Lean Karlo U. Corpuz |
Hello Karlo, 2014-07-24 18:21 GMT+03:00 Lean Karlo Corpuz notifications@github.com:
|
Hi
How come it always returns false. below are my code.
auth.php
array( 'patient' => array( 'driver' => 'database', 'table' => 'patients' ), 'doctor' => array( 'driver' => 'database', 'table' => 'doctors' ) ), 'reminder' => array( 'email' => 'emails.auth.reminder', 'table' => 'password_reminders', 'expire' => 60, ), ); # LoginController.php $userdata = array( 'email' => $input['Email'], 'password' => $input['Password'], ); if (Auth::patient()->attempt($userdata,true)) { $view = Redirect::to('patients'); return $view; } else { return Redirect::to('/')->withErrors('Incorrect Email or Password')->withInput(); } # app.php 'providers' => array( ``` 'Illuminate\Foundation\Providers\ArtisanServiceProvider', //'Illuminate\Auth\AuthServiceProvider', 'Ollieread\Multiauth\MultiauthServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Session\CommandsServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Html\HtmlServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Remote\RemoteServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Illuminate\Workbench\WorkbenchServiceProvider', ), ```The text was updated successfully, but these errors were encountered: