From e5018d8f08c98d00356a13d4e107f718191c331c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 26 Sep 2007 23:01:11 +0000 Subject: [PATCH] Provide both HTML and plain text versions of account confirmation and password reset emails to try and avoid problems with link truncation. --- app/views/notifier/lost_password.text.html.rhtml | 8 ++++++++ ...lost_password.rhtml => lost_password.text.plain.rhtml} | 0 app/views/notifier/reset_password.text.html.rhtml | 3 +++ ...set_password.rhtml => reset_password.text.plain.rhtml} | 0 app/views/notifier/signup_confirm.text.html.rhtml | 8 ++++++++ ...gnup_confirm.rhtml => signup_confirm.text.plain.rhtml} | 0 6 files changed, 19 insertions(+) create mode 100644 app/views/notifier/lost_password.text.html.rhtml rename app/views/notifier/{lost_password.rhtml => lost_password.text.plain.rhtml} (100%) create mode 100644 app/views/notifier/reset_password.text.html.rhtml rename app/views/notifier/{reset_password.rhtml => reset_password.text.plain.rhtml} (100%) create mode 100644 app/views/notifier/signup_confirm.text.html.rhtml rename app/views/notifier/{signup_confirm.rhtml => signup_confirm.text.plain.rhtml} (100%) diff --git a/app/views/notifier/lost_password.text.html.rhtml b/app/views/notifier/lost_password.text.html.rhtml new file mode 100644 index 000000000..341240ea8 --- /dev/null +++ b/app/views/notifier/lost_password.text.html.rhtml @@ -0,0 +1,8 @@ +

Hi,

+ +

Someone (possibly you) has asked for the password to be reset on this + email addresses openstreetmap.org account.

+ +

If this is you, please click the link below to reset your password.

+ +

<%= @url %>

diff --git a/app/views/notifier/lost_password.rhtml b/app/views/notifier/lost_password.text.plain.rhtml similarity index 100% rename from app/views/notifier/lost_password.rhtml rename to app/views/notifier/lost_password.text.plain.rhtml diff --git a/app/views/notifier/reset_password.text.html.rhtml b/app/views/notifier/reset_password.text.html.rhtml new file mode 100644 index 000000000..a99ca378e --- /dev/null +++ b/app/views/notifier/reset_password.text.html.rhtml @@ -0,0 +1,3 @@ +

Hi,

+ +

Your password has been reset to <%= @pass %>

diff --git a/app/views/notifier/reset_password.rhtml b/app/views/notifier/reset_password.text.plain.rhtml similarity index 100% rename from app/views/notifier/reset_password.rhtml rename to app/views/notifier/reset_password.text.plain.rhtml diff --git a/app/views/notifier/signup_confirm.text.html.rhtml b/app/views/notifier/signup_confirm.text.html.rhtml new file mode 100644 index 000000000..2272b0152 --- /dev/null +++ b/app/views/notifier/signup_confirm.text.html.rhtml @@ -0,0 +1,8 @@ +

Hi,

+ +

Someone (hopefully you) would like to create an account over at + <%= SERVER_URL %>.

+ +

If this is you, please click the link below to confirm that account.

+ +

<%= @url %>

diff --git a/app/views/notifier/signup_confirm.rhtml b/app/views/notifier/signup_confirm.text.plain.rhtml similarity index 100% rename from app/views/notifier/signup_confirm.rhtml rename to app/views/notifier/signup_confirm.text.plain.rhtml -- 2.43.2