Self Registration stopped working after git update

702 views
Skip to first unread message

sc...@listentosee.com

unread,
Mar 27, 2013, 6:22:12 PM3/27/13
to canvas-l...@googlegroups.com
We have been running Canvas in evaluation mode for the last two months. Everything was humming along nicely until we did an update from github yesterday. The update process was seemingly painless and the instructions were clear. There were no errors encountered. However, now when we try to access the /register or/enroll/<join code> we get an error message that Self registration has not been enabled for this account. Being that all things remained the same as before the update does anyone know why this would happen? We have checked all the settings and they are set correctly.

Any help here would be greatly appreciated.

Scott

Cody Cutrer

unread,
Mar 27, 2013, 7:00:01 PM3/27/13
to canvas-l...@googlegroups.com
Scott,

Have you run migrations? Self registration used to hard-coded on for the default account, but now is a setting (on the settings page). There was a migration to grandfather-in self registration for the default account.

Cody Cutrer
Software Engineer
Instructure


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

sc...@listentosee.com

unread,
Mar 27, 2013, 7:43:46 PM3/27/13
to canvas-l...@googlegroups.com
Hi Cody,

Thanks for the quick response. If you are talking about DB migrations then yes we ran this command on the production environment. RAILS_ENV=production bundle exec rake db:migrate. It seemed to run fine without any errors. Would it hurt to run it again?

Scott

sc...@listentosee.com

unread,
Mar 27, 2013, 8:13:06 PM3/27/13
to canvas-l...@googlegroups.com
It is interesting though that when accessing this link:


The system the system prompts you to login to enroll for the course. However, when you access this link:


the system returns and error that Self registration has not been enabled for the account.

It almost seems like the migration was partially completed.

Cody Cutrer

unread,
Mar 28, 2013, 11:49:32 AM3/28/13
to canvas-l...@googlegroups.com
SAh, I forgot that there is no UI for enabling Self Registration. Also, there are differences between self enrollment, self registration, and open registration:

Self Enrollment - existing users are allowed to enroll themselves in a course without being invited (there is a setting for this on each course). (https://learn.opssafety.com/enroll/XGDCFX)
Self Registration - any user is allowed to create a user account (at which point they may be able to create or join courses, depending on if there are any courses allowing self enrollment, or the value of the "Users with no enrollments can create courses" setting on the account settings page) (https://learn.opssafety.com/register)
Open Registration - teachers/admins are allowed to enter any e-mail address to invite users to a course/add them as admins, and a user account will be implicitly created for them. If this is off, teachers can only invite existing users to courses.

Self-enrollment and self-registration can be combined, so that on a public course with self-enrollment, if the user isn't logged in they are given the choice to log in or create a new account.

In order to enable self-registration if the migration did not do it for you, you'll need to open script/console, and execute the following:

account = Account.default
account.settings[:self_registration] = true
account.save!

Cody Cutrer
Software Engineer
Instructure

sc...@listentosee.com

unread,
Mar 28, 2013, 1:44:09 PM3/28/13
to canvas-l...@googlegroups.com
Perfect! Everything is working better than before and now we have to restyle/brand the registration page.

Thanks for your help Cody!

techsq...@gmail.com

unread,
May 19, 2013, 10:04:15 PM5/19/13
to canvas-l...@googlegroups.com
This information helped me as well.
 
Only problem I am facing at this point is I want to configure Student Self-enrollment WITHOUT a join code. I see the option for it listed in the Canvas Guide here http://guides.instructure.com/s/2204/m/4212/l/73167-how-do-i-sign-up-for-canvas-as-a-student, but I cannot find anywhere to make it actually show the "don't have a code?" sub option.
 
Any insights on how I activate this option?
 
TIA -- Tech

Cody Cutrer

unread,
May 20, 2013, 2:49:50 PM5/20/13
to canvas-l...@googlegroups.com
So I just learned a bit. The option for a student to register for an account without a join code was removed cause our legal department said so (I have no idea of the reason). From a non-legal standpoint, it shouldn't matter much - a student that signs up without a join code couldn't really do anything anyway. They'd still need to know the link to the public course in order to self-enroll in it, and if you have a public course with self-enrollment allowed from the course home page, the student will be able to register right there, without needing to register at /register.

Hope that helps,

Cody Cutrer
Software Engineer
Instructure
Reply all
Reply to author
Forward
Message has been deleted
0 new messages