server/helpers/email.rb
# TODO: validate email on update/create of user
validate email on update/create of user
validate email on update / create of user
def email_password_reset_link(user, link)
    logger.info "[email] notifying #{user.email} about generated password reset link"
    Pony.mail(
      to: user.email,
      subject: 'Password Reset Request',
      html_body: "<p>Hi #{h user.username},</p>
      <br/>
      <p>Someone requested a reset of your password on #{link_to_site_root}.</p>
      <p>If it was you, visit the following link to continue: #{link}.</p>
      <p>If you didn't request this, please ignore this email.</p>
      <br/>
      <p>-MagicStick</p>"
    )
    log_debug_email
  end
def email_password_reset_link ( user , link ) logger . info "[email] notifying #{user.email} about generated password reset link" Pony . mail ( to : user . email , subject : 'Password Reset Request' , html_body : "<p>Hi #{h user.username},</p>
      <br/>
      <p>Someone requested a reset of your password on #{link_to_site_root}.</p>
      <p>If it was you, visit the following link to continue: #{link}.</p>
      <p>If you didn't request this, please ignore this email.</p>
      <br/>
      <p>-MagicStick</p>" ) log_debug_email end
TODO: validate email on update/create of user
TODO : validate email on update / create of user
user
<not_specific>
link
<not_specific>