Sha256: db414addc90d1c9d77a66cc92dc54d89deb0aeb567b218f47a7a804b2445aa22
Contents?: true
Size: 876 Bytes
Versions: 4
Compression:
Stored size: 876 Bytes
Contents
set -o xtrace curl -s -X POST -d 'user[email]=someone@example.com&user[psasword]=abc123!@ASD' http://localhost:4567/users | jq -c . # => [{"error":"password is required"}] curl -s -X POST -d 'user[email]=someone@example.com&user[password]=abc123' http://localhost:4567/users | jq -c . # => [{"error":"password must be between 8 and 50 characters"}] curl -s -X POST -d 'user[username]=anonymous&user[password]=test123456' http://localhost:4567/users | jq -c . # => [{"error":"password must contain at least one of each: upper case, lower case, numeric and special characters"}] curl -s -X POST -d 'user[username]=anonymous&user[password]=abc123!_ASD' http://localhost:4567/users # => success! curl -s http://localhost:4567/users | jq -c . # => [{"id":1,"username":"anonymous","email":null,"hashed_password":"$2a$10$TMLSJNNj4K4YtpMmx.4hTOxh0lg0WsIQbFkY6v8ssuMBtMoJ2oCG6"}]
Version data entries
4 entries across 4 versions & 1 rubygems