From 94d39daa762c548bcb231d10121d35da32e6a020 Mon Sep 17 00:00:00 2001 From: "AIZAWA, Hina" Date: Tue, 5 Jan 2016 12:19:55 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#40,=20NNID=E3=81=AB=E3=83=89=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=8C=E6=8C=87=E5=AE=9A=E3=81=A7=E3=81=8D=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/ProfileForm.php | 2 +- models/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/ProfileForm.php b/models/ProfileForm.php index c6270ec85..f591c6acc 100644 --- a/models/ProfileForm.php +++ b/models/ProfileForm.php @@ -25,7 +25,7 @@ public function rules() [['name'], 'required'], [['name'], 'string', 'max' => 15], [['nnid'], 'string', 'min' => 6, 'max' => 16], - [['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9_-]+$/'], + [['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9._-]+$/'], [['twitter'], 'string', 'max' => 15], [['twitter'], 'match', 'pattern' => '/^[a-zA-Z0-9_]+$/'], [['ikanakama'], 'integer', 'min' => 1], diff --git a/models/User.php b/models/User.php index 7b0f950cb..19cd46079 100644 --- a/models/User.php +++ b/models/User.php @@ -70,7 +70,7 @@ public function rules() [['password'], 'string', 'max' => 255], [['api_key'], 'string', 'max' => 43], [['nnid'], 'string', 'min' => 6, 'max' => 16], - [['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9_-]{6,16}$/'], + [['nnid'], 'match', 'pattern' => '/^[a-zA-Z0-9._-]{6,16}$/'], [['api_key'], 'unique'], [['screen_name'], 'unique'], [['screen_name', 'twitter'], 'match', 'pattern' => '/^[a-zA-Z0-9_]{1,15}$/'],