Support the ongoing development of Laravel.io →
Authentication Security
Last updated 2 years ago.
0

I suspect the syntax error is because the 'user-id' field is of type character in the database and the resolved parameter seems to be non-character (750077) but I don't know how to remedy this.

0

Anyone?

0

Okay so I resolved the problem myself by doing the following:
In Illuminate/Auth/EloquentUserProvider I changed the following lines:
45: return $this->createModel()->newQuery()->where('user_id','=',$identifier)->get()->first();
This is the way Laravel checks user login by ID for persistent logins. I had to change this to coincide with my OpenEdge Database.
98: return $query->get()->first();
For some reason the ODBC in conjunction with the OpenEdge database returns a collection of collections so I had to add "->get()" to this specifier where the username is checked against the database when logging in.
These two changes allowed me to make logins using my ODBC database, hope it helps whoever else tackles a OpenEdge database in conjunction with Laravel :)

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

XanManZA xanmanza Joined 27 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.