FIX code bug

This commit is contained in:
jasder
2021-04-02 18:22:21 +08:00
parent 50fb8d3983
commit e022e429d4

View File

@@ -0,0 +1,8 @@
class Users::UpdateInfoForm
include ActiveModel::Model
attr_accessor :email, :password
validates :email, presence: true, format: { with: CustomRegexp::EMAIL }
validates :password, presence: true
end