01343: No $AuthId for admin account?
$AuthIdfor admin account?
Description: I have set
in my config.php, which works for regular users but not for the admin account. I get "An author name is required." when trying to edit as admin.
blab? April 20, 2014, at 06:18 AM
Is the "admin" user logged in with username and password, or only password? The admin username should have a password different from
$DefaultPasswords['admin'], is this the case? --Petko April 20, 2014, at 08:44 AM
I log in using both username and password, "admin" as the username and the password set in
Are you suggesting I add another admin account with the same username but a different password?
blab? April 20, 2014, at 01:10 PM
$AuthId; forces the author name to empty even if you set one as admin. The password in
$DefaultPasswords['admin'] is not attached to a username, you simply enter the password and leave the username field empty (anything you enter in that field is ignored). So, you can create a username or a usergroup and give them the admin permissions.
$DefaultPasswords['admin'] = array('id:blab', '@admins');
(The above removes the default nameless password.) Then log in as the user blab or as a user in the @admins group, see PmWiki.AuthUser.
Or, instead of this, you can force the
$Author only if the
$AuthId variable is set, see below. --Petko April 20, 2014, at 01:26 PM
That helped a lot. Thanks Petko
blab? April 20, 2014, at 01:52 PM