codecombat/app/templates
phoenixeliot 8496343a02 Improve student account recovery
This adds the ability to verify email addresses of a user, so we know they have access to the email address on their account.

Until a user has verified their email address, any teacher of a class they're in can reset their password for them via the Teacher Dashboard. When a user's email address is verified, a teacher may trigger a password recovery email to be sent to the student.

Verification links are valid forever, until the user changes the email address they have on file. They are created using a timestamp, with a sha256 of timestamp+salt+userID+email. Currently the hash value is rather long, could be shorter.

Squashed commit messages:

Add server endpoints for verifying email address

Add server endpoints for verifying email address (pt 2)

Add Server+Client endpoint for sending verification email

Add client view for verification links

Add Edit Student Modal for resetting passwords

Add specs for EditStudentModal

Tweak method name in EditStudentModal

Add edit student button to TeacherClassView

Fix up frontend for teacher password resetting

Add middleware for teacher password resetting

Improve button UX in EditStudentModal

Add JoinClassModal

Add welcome emails, use broad name

Use email without domain as fallback instead of full email

Fetch user on edit student modal open

Don't allow password reset if student email is verified

Set role to student on user signup with classCode

Tweak interface for joinClassModal

Add button to request verification email for yourself

Fix verify email template ID

Move text to en.coffee

Minor tweaks

Fix code review comments

Fix some tests, disable a broken one

Fix misc tests

Fix more tests

Refactor recovery email sending to auth

Fix overbroad sass

Add options to refactored recovery email function

Rename getByCode to fetchByCode

Fix error message

Fix up error handling in users middleware

Use .get instead of .toObject

Use findById

Fix more code review comments

Disable still-broken test
2016-05-24 14:07:28 -07:00
..
account Improve student account recovery 2016-05-24 14:07:28 -07:00
admin Refactor AnalyticsView #3138 #3488 2016-05-24 09:35:54 -07:00
artisans Kebab-cases html ids 2016-05-18 13:33:02 -07:00
clans Refactor ClansView #3138 #3488 2016-05-24 10:05:03 -07:00
common Refactor CreateAccountModal out of AuthModal, add class code to signup 2016-03-10 10:52:11 -08:00
contribute Replace HipChat with Slack 2016-03-18 17:05:21 -07:00
core Add border to birthday selector to match style. 2016-04-28 11:29:05 -07:00
courses Improve student account recovery 2016-05-24 14:07:28 -07:00
editor Fix filename convention, improve solution checker, remove old files 2016-05-18 12:50:50 -07:00
i18n Change visible references of 'HipChat' to 'Slack'. 2015-10-30 00:07:58 -07:00
modal Cull recruiting views and translations 2015-12-18 10:34:21 -08:00
play Add i18n to new-item-view.jade 2016-05-14 21:25:01 +01:00
teachers Improve student account recovery 2016-05-24 14:07:28 -07:00
user Improve student account recovery 2016-05-24 14:07:28 -07:00
about.jade Re-enable sales job posting 2016-05-16 16:01:44 -07:00
admin.jade Admin teacher demo requests page 2016-05-11 11:52:32 -07:00
base-flat.jade Update pt-PT (#3606) 2016-05-05 20:07:43 +01:00
base.jade Always show subscription in account dropdown if subscriber 2016-05-04 14:08:33 -07:00
careers.jade Refactor to use view in template for issue #3138 2015-11-09 21:29:27 +00:00
cla.jade Fixed .spr in cla.jade 2015-10-27 15:07:39 +00:00
community-view.jade fix community page layout 2016-05-18 09:37:32 +07:00
demo.jade Initial work on a demo view. But brunch won't build demo-app.js for some reason. 2014-06-16 11:40:08 -07:00
error.jade Move error_view's dom to template file. 2014-03-28 23:51:15 -04:00
home-view.jade New home page tweaks 2016-02-03 10:59:54 -08:00
legal.jade Add /privacy policy page 2016-02-02 15:13:54 -08:00
new-home-view.jade Update i18n 2016-05-13 15:43:12 +01:00
privacy.jade Update /privacy COPPA section 2016-04-26 11:20:47 -07:00
teachers.jade Update /teachers with post-HoC copy 2015-12-18 05:39:25 -08:00
test-view.jade TestView styling and responsive tweaks 2016-03-18 11:03:55 -07:00