root/events/phpframework/piece_framework/trunk/web/frontend/webapp/config/validations/Signup.yaml @ 14872

Revision 14872, 1.2 kB (checked in by kumatch, 5 years ago)

Added the validation of available email.

  • Property svn:keywords set to Id Rev
Line 
1# $Id$
2
3- name: userName
4  required:
5    message: %_description% を入力してください。
6  description: ユーザ名
7  basedOn: AlphaNumeric
8  validator:
9    - name: Regex
10      rule:
11        pattern: "/^[A-Za-z0-9]{1,20}$/"
12      message: %_description% %_value% を正しく入力してください。
13
14- name: password
15  required:
16    message: %_description% は空欄にはできません。6文字以上にしてください。
17  description: パスワード
18  basedOn: AlphaNumeric
19  validator:
20    - name: Regex
21      rule:
22        pattern: "/^[\w,.\/\-@]{6,}$/"
23      message: %_description% は6文字以上にしてください。
24
25- name: email
26  required:
27    message: %_description% を入力してください。
28  description: メールアドレス
29  basedOn: AlphaNumeric
30  validator:
31    - name: Email
32      rule:
33        allowDotBeforeAtmark: true
34      message: %_description% を正しく入力してください。
35    - name: WithMethod
36      rule:
37        class: Phwittr_Service
38        method: isAvailableEmail
39      message: メールアドレス %_value% はすでに存在します。
40
41
42
43# Local Variables:
44# mode: yaml
45# coding: utf-8
46# tab-width: 2
47# indent-tabs-mode: nil
48# End:
Note: See TracBrowser for help on using the browser.