mod/account/set/right/account.rb in card-1.20.4 vs mod/account/set/right/account.rb in card-1.21.0

- old
+ new

@@ -55,18 +55,33 @@ end end format :html do view :raw do + # FIXME: use field_nest instead of parsing content + # Problem: whey you do that then the fields are missing in the sign up form + # output( + # [ + # field_nest(:email, view: :titled, title: "email"), + # field_nest(:password, view: :titled, title: "password") + # ] + # ) %({{+#{Card[:email].name}|titled;title:email}} - {{+#{Card[:password].name}|titled;title:password}}) + {{+#{Card[:password].name}|titled;title:password}}) end view :edit do voo.structure = true + voo.edit_structure = [[:email, "email"], [:password, "password"]] super() end + + view :edit_in_form do + voo.structure = true + voo.edit_structure = [[:email, "email"], [:password, "password"]] + super() + end end event :validate_accountability, :prepare_to_validate, on: :create do unless left && left.accountable? errors.add :content, "not allowed on this card" @@ -118,13 +133,10 @@ view: "message", message: "Sorry, #{errors.first.last}. " \ "Please check your email for a new password reset link." } end - -def edit_password_success_args - -end +def edit_password_success_args; end def reset_password? @env_token = Env.params[:token] @env_token && Env.params[:event] == "reset_password" end