//////////////////////////////////
// AccountsTemplates configuration
//////////////////////////////////


//Fields

AccountsTemplates.addField({
    _id: "username",
    type: "text",
     displayName: "Rahimafrooz ID",
    required: true,
    minLength: 3,
    errStr: 'error.minChar'
});

AccountsTemplates.removeField('email');
AccountsTemplates.addField({
    _id: 'email',
    type: 'email',
    required: true,
    re: /.+@(.+){2,}\.(.+){2,}/,
    errStr: 'Only Rahimafrooz email IDs are valid',
    trim: true,
    lowercase: true
});
//this is the restriction code:
Accounts.config({
  restrictCreationByEmailDomain: function(email) {
    var domain = email.slice(email.lastIndexOf("@")+1); 
    var allowed = ["rahimafrooz.com"];
 // document.getElementsByClassName("at-error").innerHTML = "rahimafrooz employees allowed";
 errStr: 'Only Rahimafrooz email IDs are valid';
    return _.contains(allowed, domain);
    
}
});

//the above code ends here

//still cant modify the error code
AccountsTemplates.removeField('password');
AccountsTemplates.addField({
    _id: 'password',
    type: 'password',
    required: true,
    minLength: 8,
    errStr: 'error.minChar'
});

/*
 AccountsTemplates.addField({
 _id: "username_and_email",
 type: "text",
 displayName: "Name or Email",
 placeholder: "name or email",
 });
 */


//Routes
AccountsTemplates.configureRoute("signIn");
AccountsTemplates.configureRoute("signUp");
AccountsTemplates.configureRoute("forgotPwd");
AccountsTemplates.configureRoute("resetPwd");
//AccountsTemplates.configureRoute("changePwd");
//AccountsTemplates.configureRoute("enrollAccount");
//AccountsTemplates.configureRoute("verifyEmail");


// Options
AccountsTemplates.configure({
    enablePasswordChange: false,
    showForgotPasswordLink: true,
    confirmPassword: false,
    overrideLoginErrors: true,

    negativeFeedback: false,
    positiveFeedback: false,
    negativeValidation: true,
    positiveValidation: true
    /*
     sendVerificationEmail: true,
     continuousValidation: false,
     showLabels: true,
     forbidClientAccountCreation: false,
     formValidationFeedback: true,
     homeRoutePath: "/",
     showAddRemoveServices: false,
     showPlaceholders: true,
     */
});


// Initialization
Meteor.startup(function(){
	/*  var para = document.createElement("P");
    var t = document.createTextNode("This is a paragraph.");
    para.appendChild(t);
    document.body.appendChild(para); */

    AccountsTemplates.init();
});

@@ -182,17 +182,16 @@
 t%22,%0A    
- 
 displayN
@@ -213,16 +213,16 @@
 oz ID%22,%0A
+
     requ
@@ -447,30 +447,30 @@
 %7D/,%0A    
-errStr: 'Only 
+displayName: %22
 Rahimafr
@@ -473,36 +473,26 @@
 mafrooz 
-e
+E-
 mail ID
-s are valid'
+%22
 ,%0A    tr
@@ -1165,19 +1165,17 @@
 r'%0A%7D);%0A%0A
-/*
 %0A
+
  Account
@@ -1258,22 +1258,41 @@
 e: %22
-Name or Email%22
+Rahimafrooz ID%22,%0A  required: true
 ,%0A p
@@ -1308,16 +1308,20 @@
 r: %22
+User
 name or 
 emai
@@ -1316,17 +1316,18 @@
 name or 
-e
+E-
 mail%22,%0A 
@@ -1331,18 +1331,16 @@
 ,%0A %7D);%0A 
-*/
 %0A%0A%0A//Rou
@@ -1846,17 +1846,41 @@
 : true,%0A
+%09showPlaceholders: true,
 %0A
-
     nega
@@ -2283,16 +2283,16 @@
 ization%0A
+
 Meteor.s
@@ -2314,180 +2314,8 @@
 ()%7B%0A
-%09/*  var para = document.createElement(%22P%22);%0A    var t = document.createTextNode(%22This is a paragraph.%22);%0A    para.appendChild(t);%0A    document.body.appendChild(para); */%0A%0A
     

Update at_config.js