CodeIgniter Forums
Encrypt and URL disallowed characters - alphanumeric option? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Encrypt and URL disallowed characters - alphanumeric option? (/showthread.php?tid=12079)



Encrypt and URL disallowed characters - alphanumeric option? - El Forum - 10-05-2008

[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


Encrypt and URL disallowed characters - alphanumeric option? - El Forum - 10-05-2008

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

http://www.derekallard.com/blog/post/passing-disallowed-characters-through-the-url-in-code-igniter/

I figure this would be ok.

unless anyone has a better idea?

anton


Encrypt and URL disallowed characters - alphanumeric option? - El Forum - 10-05-2008

[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


Encrypt and URL disallowed characters - alphanumeric option? - El Forum - 10-05-2008

[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]


Encrypt and URL disallowed characters - alphanumeric option? - El Forum - 10-06-2008

[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