If you click on the "Log in" link at the top, then click on "create
new account" - won't that do the job?

Cheers,
David

On Wed, Oct 22, 2008 at 12:00 PM, Andre Rubin <[EMAIL PROTECTED]> wrote:
> Thanks for the prompt answer David.
>
> That worked for blocking non admins to create a new user... but how do
> I access codestriker.pl?action=create_new_user after I log in as an
> admin?
>
> Thanks again,
>
>
> Andre
>
> On Tue, Oct 21, 2008 at 5:21 PM, David Sitsky <[EMAIL PROTECTED]> wrote:
>> Hi Andre,
>>
>> That's an interesting use case - in theory you just need to update the
>> appropriate Method classes in lib/Codestriker/Http/Method to have the
>> following in them:
>>
>> sub requires_admin {
>>    return 1;
>> }
>>
>> See CreateProjectMethod.pm as an example.  This indicates that only
>> the admin user can perform this method.
>>
>> In this case, you'd probably want the AddNewUserMethod,
>> CreateNewUserMethod and NewPasswordMethod methods to be admin only.
>>
>> Cheers,
>> David
>>
>> On Wed, Oct 22, 2008 at 11:14 AM, Andre Rubin <[EMAIL PROTECTED]> wrote:
>>> Hi David,
>>>
>>> I've downloaded 1.9.7-rc3 and this is working now. Thanks!
>>>
>>> A question regarding this version's user management. Right now, anyone
>>> can access codestriker.pl and create a new account. Is there a way to
>>> let only admins create a new account for users? I'm thinking this
>>> shouldn't be too hard to implement, but my pearl skills are close to
>>> nil, so I have no idea how. :)
>>>
>>> Thanks,
>>>
>>>
>>> Andre
>>>
>>> On Fri, Oct 10, 2008 at 9:01 PM, David Sitsky <[EMAIL PROTECTED]> wrote:
>>>> Sorry - this was my bad.
>>>>
>>>> You can easily fix this if you edit lib/Codestriker/AddNewUser.pm, and
>>>> change two lines:
>>>>
>>>>    $smtp->mail("codestriker");
>>>>
>>>> and a bit further down:
>>>>
>>>>    $smtp->datasend("From: codestriker\n");
>>>>
>>>> On my system, it wasn't a problem to use codestriker, but obviously on
>>>> yours this is an issue.  I'll make this configurable in the next
>>>> release so you can set the email address to use when codestriker sends
>>>> out these kind of "admin" emails.
>>>>
>>>> As an example, you could make them (set the domain part right for your 
>>>> system):
>>>>
>>>>    $smtp->mail("[EMAIL PROTECTED]");
>>>>
>>>> and a bit further down:
>>>>
>>>>    $smtp->datasend("From: [EMAIL PROTECTED]");
>>>>
>>>> Please let me know if that fixes thing for you.
>>>>
>>>> Cheers,
>>>> David
>>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Codestriker-user mailing list
>>> Codestriker-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/codestriker-user
>>>
>>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Codestriker-user mailing list
Codestriker-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/codestriker-user

Reply via email to