mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX code bug
This commit is contained in:
8
app/forms/users/update_info_form.rb
Normal file
8
app/forms/users/update_info_form.rb
Normal 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
|
||||
Reference in New Issue
Block a user