List Info

Thread: Moinmoin authentication




Moinmoin authentication
user name
2007-02-17 08:11:55
Hi all,
I am using a version Moinmoin 1.5.6 in my system.I have modified the user.py file in such a way that the login credentials are authenticated with a postgres database i.e I have modified the validate_password function to validate the user credentials with the database.
An invalid user is not allowed to login and a message
"Unknown user : user_name Please enter a correct username and password" message is displayed.
;valid user is correctly validated and the user is logged in and moin cookie is created(i verified this by putting print statements) but a message
"Unknown user : user_name Please enter a correct username and password" message is displayed.
 
What could be the source of the error.
 
Regards,
Padmashree
 
Re: Moinmoin authentication
country flaguser name
Norway
2007-02-17 16:23:22
On Sat, 17 Feb 2007 19:41:55 +0530
"Padmashree B" <paddu12gmail.com> wrote:

> What could be the source of the error.

Hard to say without the (modified) source... 


Preben

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Moin-user mailing list
Moin-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: Moinmoin authentication
country flaguser name
India
2007-02-18 04:37:30
> On Sat, 17 Feb 2007 19:41:55 +0530
> "Padmashree B" <paddu12gmail.com> wrote:
>
>> What could be the source of the error.
>
> Hard to say without the (modified) source... 
>

I have modified the user.py and here is the modified source

http://dev.tce.edu/pr/tcenet-wiki/attachment/ticke
t/3/user1.py

Please let me know if you can make out the source of the
error.

Regards
Padmashree


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Moin-user mailing list
Moin-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: Moinmoin authentication
country flaguser name
India
2007-02-18 04:45:34
>
>> On Sat, 17 Feb 2007 19:41:55 +0530
>> "Padmashree B" <paddu12gmail.com> wrote:
>>
>>> What could be the source of the error.
>>
>> Hard to say without the (modified) source... 
>>
>
> I have modified the user.py and here is the modified
source
>
> http://dev.tce.edu/pr/tcenet-wiki/attachment/ticke
t/3/user1.py
>
> Please let me know if you can make out the source of
the error.
>

I have modified the function 
_validatePassword(self,username,password)
and I have modified User.py to include

                self.connstr='connection parameters'
 	        self.conn=pgdb.connect(self.connstr)
	        self.cursor=self.conn.cursor()
 	        self.cursor1=self.conn.cursor()




-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Moin-user mailing list
Moin-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user


Re: Moinmoin authentication
user name
2007-02-18 05:17:16
Thanks,I have rectified the source of error and It works fine now.

On 2/18/07, paddu12tce.edu">paddu12tce.edu < paddu12tce.edu"> paddu12tce.edu&gt; wrote:

>
>> On Sat, 17 Feb 2007 19:41:55 +0530
&gt;> "Padmashree B" < paddu12gmail.com">paddu12gmail.com> wrote:
>;>
>&gt;> What could be the source of the error.
>;>
>&gt; Hard to say without the (modified) source...
>>;
>
> I have modified the user.py and here is the modified source
>;
> http://dev.tce.edu/pr/tcenet-wiki/attachment/ticket/3/user1.py
>
> Please let me know if you can make out the source of the error.
>;

I have modified the function&nbsp; _validatePassword(self,username,password)
and I have modified User.py to include

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; self.connstr='connection parameters'
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; self.conn=pgdb.connect(self.connstr)
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; self.cursor=self.conn.cursor()
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;self.cursor1=self.conn.cursor()




-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)




--
My Blog : http://padma12.blogspot.com
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )