mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Prevent double _cc classroom join
This commit is contained in:
parent
7bbcd705c6
commit
77a8347b5e
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ module.exports = class CoursesView extends RootView
|
|||
classroomName: newClassroom.get('name')
|
||||
ownerID: newClassroom.get('ownerID')
|
||||
}
|
||||
location.search = '' # Prevent another student from logging in later with the _cc query param in place
|
||||
@classrooms.add(newClassroom)
|
||||
@render()
|
||||
@classroomJustAdded = newClassroom.id
|
||||
|
|
Loading…
Reference in a new issue