gencode fix

This commit is contained in:
Yaman Qalieh 2016-08-18 19:05:39 -04:00
parent 9162a34537
commit de01667272

View File

@ -88,7 +88,7 @@ Security.permit(['insert', 'update', 'remove']).collections([schools, classes, w
Meteor.methods({
'genCode': function() {
return Math.random().toString(36).substring(7);
return Math.random().toString(36).substr(2, 6);
},
'createSchool': function(schoolname) {
if (Meteor.user() !== null &&