Hi,
As I post in "Features suggestion" about a way to create time limited account, I found later the ®isterTpl parameter working with the &customFields one.
As the docs "advised against providing inputs for id, internalKey, role, blocked, blockedunitl, blockedafter.."
I thought passing a ’blockafter value’ could be the way to manage the account’s life duration.
Is this a way ?
In thise case we miss some bits to calculate the ’blockafter’ real date, knowing a number of days (duration for the account).
Is this can be done directly or something needa be coded ??
Thank you
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
That should work, it’s just not normally a good idea to mess with those values since normally you don’t want your visitors to unexpectedly find themselves blocked.
...visitors to unexpectedly find themselves blocked
Hi,
This
not unexpected, this is
highly expected. May be I was not clear enought, I’m looking for a way to create
temporary account (with probale payment prerequisite too).
so, does someone can give me some more clue ?
thank you
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
I know you want to, I was saying usually. In any case, after further thought, I don’t think that has anything at all to do with a date, it’s after how many failed attempts. So it won’t serve your purpose. I would suggest adding a custom table with the appropriate fields and work with the event API.
OnWebAuthentication
Invoked DURING login when authentication is verified. WebLoginPE uses industry standard techniques to authenticate a user, but, if you have your own authentication schematic, or you want to verify more than just "username" and "password" (for example CAPTCHA or retina scan... j/k), you can use a plugin tied to this event. WebLoginPE will first try to pass authentication to this plugin. If there is no response, it will use it’s own authentication. Parameters are ’internalKey’, ’username’, ’form_password’, ’db_password’, ’rememberme’, and ’stayloggedin’.
hmm. well need to be coder. Will take month to me to get the skill, but I’ll dig this way.
and I’m affraid dealing with WebloginPE is far away from my capabilities
thank you
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
I don’t think it would be all that bad. I’ve got a site I’m trying to update right now, and it’s raining which means bad connections here, but as soon as I get that site updated and working (a lot of rebuilt custom AJAX stuff, among other things) I’ll take a look at this. Unless somebody else gets to it first, that is.
well, what can I say : You’re the best ?
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
The first part you shouldn’t have a problem doing, WebLoginPE has parameters for extra tables and extra fields. Check out the doc folder that comes with it for details. You can at least get the table and fields set up. I’m not 100% sure how that works, but I think that if you use the default "extra" table it will add the ID field automatically for making the connection between the user and the extra data.
Of course, you could cheat outrageously and use an existing field in the regular user database, for instance if you’re not using the date of birth field...
As I told you I’m unfortunately not a php coder, so I haven’t any idea about doing a snippet that will check (any) field to compare it with the current date and delete (better) or block the concerned account.
will need someone to deal with this part.
I asked on my local forum a couple of weeks ago if someone could be partner with for such request, but ... even not one answer.
Regards
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net