I’m writing an CI application that has to have authentication and preferably different roles (normal and administrator). I’ve used the awesome tank_auth library when using a MySQL DB and I’ve never had any problems. I’m getting issues using it with SQL SERVER. Weird things like telling me the username is taken when the users table is empty, and when I do insert a user (after removing username checking) when I log in I’m constantly getting incorrect creds errors even though I’m 100% sure that the details are correct.
Is anyone successfully using any good authentication libraries with a SQL SERVER DB? Or even better has anyone managed to get tank_auth working with SQL SERVER?
I’m using the sqlsrv driver btw.
Any help wold be most appreciated!
Billy
ION_AUTH Error
A Database Error Occurred
Error Number: 22003
[Microsoft][SQL Server Native Client 10.0][SQL Server]Arithmetic overflow error converting expression to data type datetime.
INSERT INTO users (username, password, email, group_id, ip_address, created_on, last_login, active) VALUES ('billy jones', '0c85ef6874f2e08d3667a4334c4f4fc0d95b9358', '[email protected]', 2, '127.0.0.1', 1297081373, 1297081373, 1)
Filename: C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\cp\system\database\DB_driver.php
Line Number: 330