아이디, 비밀번호, 실명, 닉네임 등등의 길이를 제한하려고 할 때에는 아래의 파일에서 수정하면 된다.
회원가입 시에는
\modules\member\skins\default\filter\signup.xml
에서 설정 해 주면 된다.

modules\member\skins\default\filter\signup.xml
<filter name="signup" module="member" act="procMemberInsert" extend_filter="member.getJoinFormList" confirm_msg_code="confirm_submit">
    <form>
        <node target="user_id" required="true" minlength="2" maxlength="80" filter="userid" />
        <node target="password1" required="true" minlength="6" maxlength="20" />
        <node target="password2" required="true" minlength="6" maxlength="20" equalto="password1" />
        <node target="user_name" required="true" minlength="2" maxlength="40" />
        <node target="nick_name" required="true" minlength="2" maxlength="40" />
        <node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
    </form>
    <parameter>
        <param name="accept_agreement" target="accept_agreement" />
        <param name="member_srl" target="member_srl" />
        <param name="user_id" target="user_id" />
        <param name="password" target="password1" />
        <param name="user_name" target="user_name" />
        <param name="nick_name" target="nick_name" />
        <param name="homepage" target="homepage" />
        <param name="blog" target="blog" />
        <param name="birthday" target="birthday" />
        <param name="allow_mailing" target="allow_mailing" />
        <param name="email_address" target="email_address" />
    </parameter>
    <response callback_func="completeInsert">
        <tag name="error" />
        <tag name="message" />
        <tag name="redirect_url" />
    </response>
</filter>


최소 최대 길이의 설정 부분을 적당하게 수정하면 된다. 
몇 글자 이상 입력하게 제한을 두려면 최소 길이를 수정하면 된다.

회원정보 수정 시 다시 길게 할 우려가 있다.
수정 시에도 길이를 같게 설정하려면
 이름과 닉네임등은
\member\skins\default\filter\modify_info.xml
에서 수정 하면 된다.

\member\skins\default\filter\modify_info.xml
<filter name="modify_info" module="member" act="procMemberModifyInfo" extend_filter="member.getJoinFormList" confirm_msg_code="confirm_submit">
    <form>
        <node target="user_name" required="true" minlength="2" maxlength="40"/>
        <node target="nick_name" required="true" minlength="2" maxlength="40"/>
        <node target="email_address" required="true" minlength="1" maxlength="200" filter="email"/>
    </form>
    <parameter>
        <param name="accept_agreement" target="accept_agreement" />
        <param name="user_name" target="user_name" />
        <param name="nick_name" target="nick_name" />
        <param name="homepage" target="homepage" />
        <param name="blog" target="blog" />
        <param name="birthday" target="birthday" />
        <param name="allow_mailing" target="allow_mailing" />
        <param name="email_address" target="email_address" />
        <param name="signature" target="signature" />
    </parameter>
    <response callback_func="completeModify">
        <tag name="error" />
        <tag name="message" />
    </response>
</filter>


비밀번호는
\modules\member\skins\default\filter\modify_password.xml
에서 수정하면 된다.

\modules\member\skins\default\filter\modify_password.xml
<filter name="modify_password" module="member" act="procMemberModifyPassword" confirm_msg_code="confirm_submit">
    <form>
        <node target="current_password" required="true" minlength="1" maxlength="50" />
        <node target="password1" required="true" minlength="6" maxlength="20" />
        <node target="password2" required="true" minlength="6" maxlength="20" equalto="password1" />
    </form>
    <parameter>
        <param name="current_password" target="current_password" />
        <param name="password" target="password1" />
    </parameter>
    <response callback_func="completeModify">
        <tag name="error" />
        <tag name="message" />
    </response>
</filter>

현재평점 1 (평가자 수 : 1)
profile

여기에서 행복한 시간 되십시오.