ajmartin
Posts: 11
|
| Posted: 11/27/2004, 6:54 PM |
|
Hi there,
A couple of quick questions....
I know that there would be relatively simple programming solutions to achieve the following, however am wondering whether ccs has even easier options.
1. Can you have different database tables used for authentication. For example I have a login for an admin area and a login for clients... I would like to authenticate using different databases for each.
2. I would like to store passwords using the php password function (so that they are encrypted, rather than plain text). What is the easiest way to set the builtin authentication builder to know that this is how the passwords are stored?
Regards
Adam
|
 |
 |
peterr
Posts: 5971
|
| Posted: 11/27/2004, 11:04 PM |
|
There are no such options, however this could be 10 minute job to implement, since each of those changes requires modifying only 1 line of PHP code.
Re: 1
After the login page is generated please look at the generated event page (Login_events.php) and change "CCLoginUser" to your own function that will connect to a different database. You can find and copy CCLoginUser from Common.php then change the 1st line of that function to point to a different connection.
Re: 2
Here also you can modify one line of code (the SQL) in the CCLoginUser function in Common.php.
Please refer to http://forums.codecharge.com/posts.php?post_id=45628
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Damian Hupfeld
|
| Posted: 11/28/2004, 3:01 AM |
|
Another way of authenticating to two different databases is to create two
projects looking at the same set of data.
The files that they upload might need to point to a different subdirectory
eg \admin to ensure that there are no errors caused by differences in the
common includes.
regards
Damian Hupfeld http://www.itng.com.au/services.php
"peterr" <peterr@forum.codecharge> wrote in message
news:541a9787eb544b@news.codecharge.com...
> There are no such options, however this could be 10 minute job to
> implement,
> since each of those changes requires modifying only 1 line of PHP code.
>
> Re: 1
> After the login page is generated please look at the generated event page
> (Login_events.php) and change "CCLoginUser" to your own function that will
> connect to a different database. You can find and copy CCLoginUser from
> Common.php then change the 1st line of that function to point to a
> different
> connection.
>
> Re: 2
> Here also you can modify one line of code (the SQL) in the CCLoginUser
> function
> in Common.php.
> Please refer to http://forums.codecharge.com/posts.php?post_id=45628
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.codecharge.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|