Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2005-11-02 16:06:18

kalius
New Member
From: Madison, WI
Registered: 2005-07-21
Posts: 8

Re: ign_password_protect

Actually no download links on this tread are working, neither the link at txp resources site.

Last edited by kalius (2005-11-02 16:29:16)

Offline

#152 2005-11-03 10:43:24

Hiram
Member
From: Utrecht, Netherlands
Registered: 2004-02-16
Posts: 35
Website

Re: ign_password_protect

Same here. File downloaded contains one character, a letter ‘a’.

Offline

#153 2005-11-04 20:34:48

kalius
New Member
From: Madison, WI
Registered: 2005-07-21
Posts: 8

Re: ign_password_protect

Can somebdoy either provide a working download link or send me the plugin file?

The links to it aren’t working and the author donesn’t respond, I really need this to finish a website.

Offline

#154 2005-11-04 20:46:27

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

sorry folks – in the process of moving hosts…seems i missed a few posts over the past couple of days.

link should be working again, let me know if it’s not.


And then my dog ate my badger, and the love was lost.

Offline

#155 2005-11-08 07:19:42

step21
Member
From: Germany, Black Forest
Registered: 2004-09-03
Posts: 25
Website

Re: ign_password_protect

Normally, as I read it, mem_self_register supports mem_self_edit and mem_password_change with ign_password protect. However, if I put for example mem_password_change on a page which authenticates with ign_password_protect in page mode, (an extra section for editing the password) I see nothing, so I assume, that mem_self_register doesn’t recognize the authentication.
As user database, the normal txp user db is used.
Any ideas? Thx in advance,
step21


Ever/Never Design
Beauty meets Business.

Offline

#156 2005-11-10 13:59:06

darrepac
Member
Registered: 2005-09-26
Posts: 64
Website

Re: ign_password_protect

Crazy behaviour!!!
Let me explain
I am in a very big company and so behind prxy/firewall/router/caches/…. I browse my website and particularly the part which is password protected… I am logged into it’s ok…
A friend, who is working 2 flats below in the same company is able to read the protected area without entering logging info and on its screen he sees that he is logged as me!!! Crazy!!!
Outside my company it works very well….
Do you see where could come the mistake….I was thinking about cache and too permissible cookie, but in fact I do not really know…
If you have ideas

Pascal

Offline

#157 2005-11-10 16:45:12

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: ign_password_protect

One easy question:

when you use alternate database, ¿users in the built-in database (i mean, the txp_users database) cannot log in to view the password protected content?.

So, in this case, if you are using the alternate database, and you are the webmaster of the site (ie. if you are a registered user in the txp_users database) you will need to have another login/password (in the altarnate database) to log into the password protected content.

Am I right?
Is there anyway to check in both databases when you are logging in?. But, of course, when someone registers himself, to be added to the alternate database.

If not, I can think the only solution is that users in txp_users database have also a user in the alternate database. But, that is two users for one person, and I’m trying to avoid that.

Last edited by maniqui (2005-11-10 16:48:10)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#158 2005-11-10 17:15:37

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: ign_password_protect

Mmmm…

I’m reading the plug-in description (in the description col, in plug-in tab at the admin-side)

<blockquote>Password protect articles or sections; authenticates against txp_users <strong>or</strong> alternate database (ign_users)</blockquote>

That “or” seems to be exclusive: you authenticate against one database or the other, but not against both.

Last edited by maniqui (2005-11-10 17:16:28)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#159 2005-11-10 17:47:08

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

it is exclusively one OR the other – however, at the time the alternate database is created, it is populated with the users from the existing txp_users, so pre-existing users get migrated over. I suppose I could do a join of the two tables, but it wasn’t a primary concern for me at the time. I looked at doing a failover to the txp_users table if lookup failed on the alternate, but I also wanted to minimize the number of times the plugin hits the DB, so I abandoned that concept at the time. Maybe I’ll revisit it for a future release.


And then my dog ate my badger, and the love was lost.

Offline

#160 2005-11-10 17:49:52

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

step21 – the user credentials get set in the same way regardless of the authentication method, so I’m not sure what might be happening there.

darrepac – this is indeed an issue with caching; it’s something I’ve needed to address but haven’t had the opportunity to set up the necessary test environment. Anyone behind a cache / proxy interested in helping me test, contact me off list.


And then my dog ate my badger, and the love was lost.

Offline

#161 2005-11-10 18:32:30

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: ign_password_protect

Thanks for replying, igner. <blockquote>however, at the time the alternate database is created, it is populated with the users from the existing txp_users</blockquote>

This doesnt seem to work for me.
I have only one user in txp_users, the “webmaster” user. But when the plug-in creates the ign_users, I get 0 records in that table.

And, in the case it works (i mean, if existing records from txp_users are copied to the ign_users)… how do you manage the following?

  • when you delete a user in one table, is it deleted from the other one?
  • when a user (in txp or ign database) changes his password/email, is it updated in both tables?

Maybe, the idea of hitting the DB twice is not a bad idea.
This way you can have one record per user and not two (duplicated) records.

Also, maybe in future releases, it would be possible to move users from one table to the other.
This will become a nice feature if a user in ign_user gets so involved with the site that he/she deserves to access to the admin side.
So, you move her/him from ign_users to txp_users.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#162 2005-11-10 19:12:20

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

odd, not sure why the user isn’t getting migrated. it’s a one shot deal, copying the users from txp_users over to ign_users. no reverse management – if you change in one place, it doesn’t propagate to the other, etc.

i’ve toyed with the idea of being able to push users from one table to the other – it’d be relatively trivial to accomplish on the back end…it’s just a lot of planning and effort into building a sensible UI, and I simply haven’t had the time (or the incentive, for that matter) to do so.

right now I’m pretty much in bug-fix / maintenance mode on this until I wrap up some other projects, but i will definitely take into consideration ALL suggestions offered up – so please, keep ‘em coming.


And then my dog ate my badger, and the love was lost.

Offline

#163 2005-11-16 03:43:06

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: ign_password_protect

igner, could you add an option on <txp:ign_logged_user /> to NOT add link to log out ?

i.e. I just want to display the logged-in user’s name (and provide a stand-alone link to “log out”)

Offline

#164 2005-11-16 19:01:50

igner
Plugin Author
Registered: 2004-06-03
Posts: 337

Re: ign_password_protect

I can put it on the list – in the meantime, around line 136 you can change:

<code> $user= ($verbose) ? graf(gTxt(‘logged_in_as’).’ ‘.$u_display.br.’<a href=”?logout=1” alt=”’.$alt.’” title=”’.$alt.’”>’.gTxt(‘logout’).’</a>’) : ‘<a href=”?logout=1” alt=”’.$alt.’” title=”’.$alt.’”>’.$u_display.’</a>’;
</code>

to

<code> $user= ($verbose) ? graf(gTxt(‘logged_in_as’).’ ‘.$u_display.br.’<a href=”?logout=1” alt=”’.$alt.’” title=”’.$alt.’”>’.gTxt(‘logout’).’</a>’) : $u_display;
</code>

And that should do the trick for you.


And then my dog ate my badger, and the love was lost.

Offline

#165 2005-11-16 23:03:39

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: ign_password_protect

thanx igner, appreciated

Offline

Board footer

Powered by FluxBB