{"action":"closed","issue":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/2633","repository_url":"https://api.github.com/repos/the-control-group/voyager","labels_url":"https://api.github.com/repos/the-control-group/voyager/issues/2633/labels{/name}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/2633/comments","events_url":"https://api.github.com/repos/the-control-group/voyager/issues/2633/events","html_url":"https://github.com/the-control-group/voyager/issues/2633","id":296037556,"number":2633,"title":"Validation question: regex but not required still required.","user":{"login":"thill0822","id":3029132,"avatar_url":"https://avatars1.githubusercontent.com/u/3029132?v=4","gravatar_id":"","url":"https://api.github.com/users/thill0822","html_url":"https://github.com/thill0822","followers_url":"https://api.github.com/users/thill0822/followers","following_url":"https://api.github.com/users/thill0822/following{/other_user}","gists_url":"https://api.github.com/users/thill0822/gists{/gist_id}","starred_url":"https://api.github.com/users/thill0822/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thill0822/subscriptions","organizations_url":"https://api.github.com/users/thill0822/orgs","repos_url":"https://api.github.com/users/thill0822/repos","events_url":"https://api.github.com/users/thill0822/events{/privacy}","received_events_url":"https://api.github.com/users/thill0822/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-09T22:54:47Z","updated_at":"2018-02-11T15:02:17Z","closed_at":"2018-02-11T15:02:17Z","author_association":"NONE","body":"- Laravel Version: 5.5\r\n- Voyager Version: 1.0\r\n- PHP Version: 7.1\r\n- Database Driver & Version: MySQL\r\n\r\nI've set the validation for the user password as follows: \r\n\r\n```\r\n{\r\n    \"validation\": {\r\n        \"rule\": \"min:8|regex:/^.*(?=.{3,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\\\\d\\\\X])(?=.*[!$#%]).*$/\",\r\n        \"messages\": {\r\n            \"regex\": \"Your password must contain at least 1 uppercase letter, 1 lowercase letter, 1 number and 1 symbol\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThis is working, however, when I try to edit a user if I leave the password blank, it's still giving me the `regex` error message. I need to have minimum password standards, but I shouldn't have to enter the user's password everytime the account is updated. Am I missing something?\r\n\r\n(I know I've put in quite a few requests lately so thanks for the quick responses and bearing with me!)"}}
{"actor":{"display_login":"thill0822"}}