Fix create method of registrations_controller
What does this MR do and why?
Failed job: https://jihulab.com/gitlab-cn/gitlab/-/jobs/7529384
rspec ./jh/spec/features/users/signup_with_phone_spec.rb:102 # Signup with phone with SaaS environment with invalid password renders error message
Upstream removed yield new_user if block_given?
. This causes JH's block not to be called.
Changes from: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119368
Screenshots or screen recordings
After fixing:
How to set up and validate locally
- Simulate SaaS
- Turn on FF
registrations_with_phone
- Turn on ApplicationSetting
phone_verification_code_enabled
- Goto http://localhost:3000/users/sign_up page
- Fill in a weak password
- Fill in a correct verification code
- Click register button
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
由 Baodong 编辑于