[xwiki-users] Problems with Email verification
Hi, I want to require users to register and verify for an existing email adress before being allowed to write comments - to prevent spam. So, I set "Use email verification " to yes in the wiki registration preferences. But there are two problems: 1) the newly registered user can edit and write comments without properly verifying the email address. 2) The registration mail is not correctly showing the link to registration. It seems to show the plain velocity template, like this: Subjec: Validate your account on $wikiname Hello my user, This email address was used to register a new account on ${wikiname}. If you did not make the request, please ignore this message. In order to activate your account, please follow this link: $xwiki.getDocument("XWiki.AccountValidation").getExternalURL("view", "validkey=${validkey}&xwikiname=${xwikiname}") Any idea what I could be doing wrong? -- Henning Sprang http://www.sprang.de | http://lazyb0y.blogspot.com/
Hi, On Fri, Feb 20, 2009 at 1:25 PM, Henning Sprang <[email protected]> wrote:
But there are two problems:
By the way, my system is Xwiki Enterprise 1.7.2 deployed as war, with the default xar installed and some, but I think minor changes in permissions in the meantime. Hmm one thing I can think of now: I have set xwiki2.0 as the first in multiple wiki markup possibilities in the property in xwiki.cfg. I realized that xwiki 2.0 doesn't resolve velocity variables by default. That could explain the variable replacement problem - going to check that. But if that is so, I still want xwiki2.0 the default markup for all new pages. Henning
Hi, On Fri, Feb 20, 2009 at 2:10 PM, Henning Sprang <[email protected]>wrote:
Hi,
On Fri, Feb 20, 2009 at 1:25 PM, Henning Sprang <[email protected]> wrote:
But there are two problems:
By the way, my system is Xwiki Enterprise 1.7.2 deployed as war, with the default xar installed and some, but I think minor changes in permissions in the meantime.
Hmm one thing I can think of now: I have set xwiki2.0 as the first in multiple wiki markup possibilities in the property in xwiki.cfg. I realized that xwiki 2.0 doesn't resolve velocity variables by default. That could explain the variable replacement problem - going to check that. But if that is so, I still want xwiki2.0 the default markup for all new pages.
Have you tried enclosing the content within {{velocity}} content here {{/velocity}} ? This should solve your issue for pages with code that have been switched to syntax 2.0 (if that's the case here). Velocity variables in XWiki syntax 2.0 are interpreted only if surrounded by the velocity macro. Guillaume
Henning _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Hi Guillaume, On Fri, Feb 20, 2009 at 3:31 PM, Guillaume Lerouge <[email protected]> wrote:
Have you tried enclosing the content within {{velocity}} content here {{/velocity}} ?
Yes, did that now, but it didn't help. I also checked, but my suspicion that I set the 2.0 syntax as the first one was not right. So, I/usres still get incorrect Email verification messages, and at the same time they can edit pages and add comments even though they did not verify their Email address. Is the Email address verification intended to work as I expect it anyway? I don't find it documented in detail,. but I'd expect registered users are not real activated until they confirm their Email. Or do I get that wrong? Henning
On Fri, Feb 20, 2009 at 5:26 PM, Henning Sprang <[email protected]> wrote:
So, I/usres still get incorrect Email verification messages, and at the same time they can edit pages and add comments even though they did not verify their Email address.
I solved the latter. I had to check also the field "Check Active fields for user authentication" (whose meaning I absolutely do and did not understand from this description, that's why I left it as it was until now), then users who registered themselves cannot do anything until they confirmed their Email. Now the problem keeps there, that they cannot confirm because the verification code is not sent to them, only velocity code. Am I hitting a bug, or is that somehow "normal" behaviour? Do i have to switch something on additionally to get those verification Mails working? Henning
On Fri, Feb 20, 2009 at 5:49 PM, Henning Sprang
Now the problem keeps there, that they cannot confirm because the verification code is not sent to them, only velocity code.
Similar to the problem with the access to the forgot username/password pages, this works when the rights for the space XWiki for unregistered users is set to allow the view permission. Still, I want to find out what single page I'd have to grant view access for, because I don't want unregistered users to see wiki details like existing groups and users. Henning
participants (2)
-
Guillaume Lerouge -
Henning Sprang