Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
539 stars 198 forks source link

Unable to login from lesson page #3150

Open AlecRust opened 4 years ago

AlecRust commented 4 years ago

Steps to Reproduce

  1. Go to a Course page as a guest user - see Login link
  2. Go to a Lesson page as a guest user - only see link to sign up for course

What I Expected

When visiting a lesson page as a guest user (for example user is sent a direct link to this week's lesson utilising Content Drip plugin) I would expect to see a link to allow me to login to access the lesson.

What Happened Instead

Instead I am presented with suggestion to sign up for the course from the course page.

To be clear: on the Course page there is a useful link to login, but not on the Lesson page.

PHP / WordPress / Sensei LMS version

PHP: 7.0.21 WordPress: 5.4.1 Sensei: 3.0.1

Browser / OS version

macOS 10.15.4

Screenshot / Video

screenshot

Context / Source

I can use sensei_single_lesson_content_inside_before to add an additional alert here, but this is also confusing for the user having two conflicting alerts.

donnapep commented 3 years ago

As a solution to this, we should consider enabling the Take Course block on the lesson page. If the user is not logged in, clicking on the button is already programmed to take them directly to the login page.