On 21 May 2008, at 05:36, xin wu wrote:
> When you create new user and group in Nuxeo, it will be handled by
> UserManagerActionBean and GroupManagerActionBean.
> They will limit your input name to chars in
> "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-0123456789"
> I don't know the reason of this(Could sombody give some hints?).
The characters are limited because internally the name will be used as
a JCR name, which is restricted.
Also we don't want people to think the group name is the same as a
group title. Unfortunately currently we don't have a specific field to
set a group title, so the group name is used in all cases.
> But in many cases, say a non-latin user, would like to use his own
> language with login name, especially with group name(This is
> meaningful to biz)
> We comment the validation code in both classes and now we can login
> with admin and create user and groups in non-latin words.
As long as you don't use reserved JCR characters (slash, colon) you're
probably safe.
> But we met another problem: we can not login the Nuxeo with non-
> latin username, we notice this piece of code in login.jsp:
> ----------------------------------------------------------
> <c:if test="${param.loginFailed}">
> <div class="errorMessage">
> <fmt:message bundle="${messages}"
> key="label.login.invalidUsernameOrPassword" />
> </div>
> </c:if>
> ---------------------------------------------------------
> Could you please tell us what the ${param.loginFailed} is and where
> can we modify it?
Login checks are made by a complex series of things. NuxeoLoginModule
calls a UserManager. UserManagerImpl.checkUsernamePassword is probably
the one you're looking for.
Florent
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm