Great - glad to hear it!

On Fri, Oct 24, 2008 at 11:50 AM, Andre Rubin <[EMAIL PROTECTED]> wrote:
> That did it!
>
> Thanks for all the help David!
>
>
> Andre
>
> On Thu, Oct 23, 2008 at 5:08 PM, David Sitsky <[EMAIL PROTECTED]> wrote:
>> Maybe for the AddNewUserMethod, you should disable admin and authentication..
>>
>> Cheers,
>> David
>>
>> On Fri, Oct 24, 2008 at 10:48 AM, Andre Rubin <[EMAIL PROTECTED]> wrote:
>>> Hi David,
>>>
>>> It does let me go to the create new user form, but when I type the
>>> user's email address and submit, it gets me back to the login page (no
>>> email was sent, and new user not in database).
>>>
>>> But we're getting closer now! :)
>>>
>>>
>>> Andre
>>>
>>> On Thu, Oct 23, 2008 at 3:26 PM, David Sitsky <[EMAIL PROTECTED]> wrote:
>>>> Ah - I think I know what it might be.  You probably need to define:
>>>>
>>>> sub requires_authentication {
>>>>    return 1;
>>>> }
>>>>
>>>> For CreateNewUserMethod and AddNewUserMethod.
>>>>
>>>> Please let me know if that works..
>>>>
>>>> I should make the above method return 1 if requures_admin is true..
>>>>
>>>> Cheers,
>>>> David
>>>>
>>>> On Fri, Oct 24, 2008 at 3:34 AM, Andre Rubin <[EMAIL PROTECTED]> wrote:
>>>>> Well, I double checked all the steps. I'm not sure what I'm doing
>>>>> wrong. Tried on FF and Chrome. Cookie is set to the user that is
>>>>> admin. In the cookie, '@' was converted to '%40' (i've never played
>>>>> around with cookies, but I'm assuming this is right). Queried db in
>>>>> mysql to double check the admin=1 value. Cleared the cookies, tried
>>>>> again. Same thing.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>> Andre
>>>>>
>>>>> On Wed, Oct 22, 2008 at 10:35 PM, David Sitsky <[EMAIL PROTECTED]> wrote:
>>>>>> Hi Andre,
>>>>>>
>>>>>> That doesn't sound right.  Have you tried using another browser
>>>>>> entirely (or clearing out the cookie)?  You must be a different user
>>>>>> logged in.. I guess the cookie will confirm this.
>>>>>>
>>>>>> Cheers,
>>>>>> David
>>>>>>
>>>>>> On Thu, Oct 23, 2008 at 10:58 AM, Andre Rubin <[EMAIL PROTECTED]> wrote:
>>>>>>> Hi David,
>>>>>>>
>>>>>>> Sorry, last email wasn't to clear!
>>>>>>> I log in as admin, I click Log In, then 'create a new account'; I
>>>>>>> still get the message: "This function requires admin access."
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>>
>>>>>>> Andre
>>>>>>>
>>>>>>> On Wed, Oct 22, 2008 at 3:36 PM, David Sitsky <[EMAIL PROTECTED]> wrote:
>>>>>>>> I'm confused with what you are trying to do.
>>>>>>>>
>>>>>>>> Which user are you talking about (new or admin user) and which screen
>>>>>>>> are you going to?  Please tell me the steps you are doing.
>>>>>>>>
>>>>>>>> Yes - I haven't done a log out yet - basically your cookie remembers
>>>>>>>> you login name.  If you want to change users, just go to the login
>>>>>>>> screen again and enter the new user you want to become.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> David
>>>>>>>>
>>>>>>>> On Thu, Oct 23, 2008 at 5:51 AM, Andre Rubin <[EMAIL PROTECTED]> wrote:
>>>>>>>>> No, it says 'This function requires admin access.'
>>>>>>>>>
>>>>>>>>> And I'm just querying usertable and the user I'm using has admin = 1;
>>>>>>>>>
>>>>>>>>> Another thing I realized is that there's no notion of logging out (I
>>>>>>>>> thought that by clicking Log In it would automatically log out, but it
>>>>>>>>> doesn't seem so). How's codestriker knows who's logged in? I even
>>>>>>>>> restarted Apache and it kept my previous user logged in. How can I
>>>>>>>>> check which user is logged in?
>>>>>>>>>
>>>>>>>>> Thanks again,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Andre
>>>>>>>>>
>>>>>>>>> On Tue, Oct 21, 2008 at 7:03 PM, David Sitsky <[EMAIL PROTECTED]> 
>>>>>>>>> wrote:
>>>>>>>>>> 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