gencode fix
This commit is contained in:
parent
9162a34537
commit
de01667272
@ -88,7 +88,7 @@ Security.permit(['insert', 'update', 'remove']).collections([schools, classes, w
|
|||||||
|
|
||||||
Meteor.methods({
|
Meteor.methods({
|
||||||
'genCode': function() {
|
'genCode': function() {
|
||||||
return Math.random().toString(36).substring(7);
|
return Math.random().toString(36).substr(2, 6);
|
||||||
},
|
},
|
||||||
'createSchool': function(schoolname) {
|
'createSchool': function(schoolname) {
|
||||||
if (Meteor.user() !== null &&
|
if (Meteor.user() !== null &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user