Browse Source

Merge pull request #72 from suzutan/fix/google-clientsecret

Fix google:clientSecret Regex
Sotaro KARASAWA 10 years ago
parent
commit
fea5fe139c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/form/admin/google.js

+ 1 - 1
lib/form/admin/google.js

@@ -5,6 +5,6 @@ var form = require('express-form')
 
 module.exports = form(
   field('settingForm[google:clientId]').trim().is(/^[\d\.a-z\-\.]+$/),
-  field('settingForm[google:clientSecret]').trim().is(/^[\da-zA-Z\-]+$/)
+  field('settingForm[google:clientSecret]').trim().is(/^[\da-zA-Z\-_]+$/)
 );