17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 11506 Views |
-
Re: Admin not logging in

26 July 2008 at 9:31am
I found this thread and wasnt sure if my problem was related:
http://www.silverstripe.com/site-builders-forum/flat/637My version of php is: 5.2.2
Might this be the reason my code isnt working?
Security::setDefaultAdmin("admin", "password");
-
Re: Admin not logging in

26 July 2008 at 11:28am
<?php
global $project;
$project = 'mysite';global $databaseConfig;
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "pedstaff.fatcowmysql.com",
"username" => "peds",
"password" => "saf3ty",
"database" => "ss_mysite",
);// Sites running on the following servers will be
// run in development mode. See
// http://doc.silverstripe.com/doku.php?id=devmode
// for a description of what dev mode does.
Director::set_dev_servers(array(
'localhost',
'127.0.0.1',
));
// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/cms-themes-and-skin
SSViewer::set_theme('peds');Security::setDefaultAdmin("admin", "password");
?>
-
Re: Admin not logging in

26 July 2008 at 2:23pm Last edited: 26 July 2008 2:23pm
There are times when the password and username are correct but you're not redirected to the admin page. Read the notification message in the form. If it says you are logged in as ... try to hit this url http://peds.org/_devsite/admin manually.
-
Re: Admin not logging in

26 July 2008 at 3:11pm
that's weird. well, make sure the username and password are correct and hit the url i mentioned eariler after the login process.
| 11506 Views | ||
| Go to Top | Next > |


