Explorar el Código

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

Fix google:clientSecret Regex
Sotaro KARASAWA hace 10 años
padre
commit
fea5fe139c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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(
 module.exports = form(
   field('settingForm[google:clientId]').trim().is(/^[\d\.a-z\-\.]+$/),
   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\-_]+$/)
 );
 );