Welcome Guest, Not a member yet? Register   Sign In
Encrypt and URL disallowed characters - alphanumeric option?
#1

[eluser]antonumia[/eluser]
I am constructing an autologin process whereby restricted users on a site receive an email with a url containing controller/function/encrypted_name/encrypted_password.


I want to avoid allowing more characters in $config['permitted_uri_chars']

Is there a way to restrict the encryption to alphanumeric characters only?

thanks,

anton
#2

[eluser]antonumia[/eluser]
It seems that it's only using + and = and after reading

http://www.derekallard.com/blog/post/pas...e-igniter/

I figure this would be ok.

unless anyone has a better idea?

anton
#3

[eluser]Yash[/eluser]
I'm confuse what exactly you want.

Quote:I want to avoid allowing more characters in $config[‘permitted_uri_chars’]
then add all characters you want

Quote:Is there a way to restrict the encryption to alphanumeric characters only?

don't use dohash use random generator function can only give you alphanumeric
#4

[eluser]Pascal Kriete[/eluser]
While I don't approve of the auto-login idea (use a remember-me cookie instead), my solution would be this.

[EDIT: On second thought, my solution would be to add it as a GET parameter]
#5

[eluser]antonumia[/eluser]
Ah, that'll do it.

thanks Inparo

btw:auto-login isn't something I'd consider usually but it's a restricted set of users connecting to a non-public site where they subsequently login/register for another level of access.

The autologin url is sent as a link via email




Theme © iAndrew 2016 - Forum software by © MyBB