[from now] 2013/04/21 21:39:38

diff --git a/grails-app/conf/Config.groovy b/grails-app/conf/Config.groovy
index 66001a9..0006141 100644
--- a/grails-app/conf/Config.groovy
+++ b/grails-app/conf/Config.groovy
@@ -91,7 +91,7 @@ log4j = {
 }

 // Added by the Spring Security Core plugin:
-grails.plugins.springsecurity.password.algorithm = 'SHA-512'
+grails.plugins.springsecurity.password.algorithm = 'SHA-256'
 grails.plugins.springsecurity.userLookup.userDomainClassName = 'sayaka.User'
 grails.plugins.springsecurity.authority.className = 'sayaka.Role'
 grails.plugins.springsecurity.dao.reflectionSaltSourceProperty = 'salt'
diff --git a/grails-app/conf/sayaka/JSONParamMapFilters.groovy b/grails-app/conf/sayaka/JSONParamMapFilters.groovy
new file mode 100644
index 0000000..6f6b438
--- /dev/null
+++ b/grails-app/conf/sayaka/JSONParamMapFilters.groovy
@@ -0,0 +1,14 @@
+package sayaka
+
+class JSONParamMapFilters {
+
+    def filters = {
+        all(controller:'*', action:'*') {
+            before = {
+                request.JSON.each { k,v ->
+                    params."$k" = v
+                }
+            }
+        }
+    }
+}
diff --git a/grails-app/controllers/SignupController.groovy b/grails-app/controllers/SignupController.groovy
index 0e3b3d8..825d5cd 100644
--- a/grails-app/controllers/SignupController.groovy
+++ b/grails-app/controllers/SignupController.groovy
@@ -7,7 +7,10 @@ class SignupController {
     }

     def signup(SignupCommand command) {
-        command.singup()
+
+        println params
+        println request.JSON
+        println command

         render text: "ok!"
     }
diff --git a/src/groovy/sayaka/command/SignupCommand.groovy b/src/groovy/sayaka/command/SignupCommand.groovy
index 8be5dbb..4f2fd78 100644
--- a/src/groovy/sayaka/command/SignupCommand.groovy
+++ b/src/groovy/sayaka/command/SignupCommand.groovy
@@ -1,10 +1,12 @@
 package sayaka.command

 import grails.validation.Validateable
+import groovy.transform.ToString
 import sayaka.User

 @Validateable
+@ToString
 class SignupCommand {

     String username
@@ -21,4 +23,8 @@ class SignupCommand {

         user.save(flush: true, failOnError: true)
     }
+
+    static constraints = {
+
+    }
 }