Welcome Guest, Not a member yet? Register   Sign In
Question about captcha in DX Auth library
#1

[eluser]Toad[/eluser]
Hi,

I'm using the DX Auth library to authenticate users. It works fine. I just noticed that a new image is created in the captcha folder every time a captcha is need in the application. The problem is that those images are not removed when not needed anymore...

After a few weeks of tests, I have more than a hundred captcha images in the folder. Is there a way to automatically delete them?

Thanks a lot =)

Toad
#2

[eluser]bretticus[/eluser]
Sure, just setup a cron job and use a variation of the find command to delete images older than x number of days
#3

[eluser]Toad[/eluser]
I already thought about cron. I just expected another solution, included in the library...

Anyway, your solution seems to be the best one...

Thanks =)
#4

[eluser]bretticus[/eluser]
You could use this recaptcha example and then you wouldn't have to deal with cleaning up images at all.
#5

[eluser]Toad[/eluser]
I will stay on the DX_Auth captcha and cron job. I have already seen recaptcha on the internet but I don't like the communication between my server and their server, for security reasons (yeah sometimes I'm a bit paranoiac...)

Thanks for your help =)
#6

[eluser]Marco___[/eluser]
Hi all,
I'm in trouble with captcha, I have installed dx_auth with captcha enabled and recaptcha disabled.
Session in db is disabled too (just for more informations).
the problem is everytime I use captcha (registration,login,ecc) the $this->dx_auth->get_auth_error() method return this error: "Your confirmation code has expired. Please try again."
The captcha is visible and the file .png was created in the right folder, please can you help me?
Thanks in advance
#7

[eluser]Marco___[/eluser]
Ok, I solve it....

The flash_data was removed every request and the captcha infos with these.
The flash_data was removed because session expires every request.
The session expires because the cookie domain in config file was wrong.

Bye
#8

[eluser]vinodraut[/eluser]
I solved this By using Normal session data instead Flashdata, in Tank_Auth.




Theme © iAndrew 2016 - Forum software by © MyBB