<div flex="70" style="float:right">
            <div ng-click="logoutDiv($mdMenu, $event)"style="text-align: center;font-size: 20px;color:black;" >
            <md-menu md-position-mode="target-right target">
                <md-icon md-svg-icon="scripts/svgImgs/settings.svg"style="float: right;align: right;
                width:25px; height:25px; margin-top:4px;" flex ng-click="OrgProfileDashboard($mdMenu, $event)"></md-icon>
                   <md-menu-content width="4" height="2">
                    <md-menu-item >
                     <md-button ng-click="orgProfileSetup()" >          
                            <div style="padding-left:10px" >ORGANIZATION PROFILE
                               <md-icon md-svg-icon="scripts/svgImgs/org.svg"style="float:left;align:left;
                                     width:35px; height:35px;">
                               </md-icon>
                           </div> 
                     </md-button>
                    </md-menu-item>
                    <md-menu-item>
                                              <md-button ng-click="invoice($event)" >          
                                            <div style="padding-left:10px" >INVOICE 
                                               
                                               <md-icon md-svg-icon="scripts/svgImgs/invoiceSetting.svg"style="float:left;align:left;
                                                     width:35px; height:35px;">
                                               </md-icon>
                                           </div> 
                                             </md-button>
                                       </md-menu-item>




<form class="form-horizontal">
  <fieldset>
    <legend>Legend</legend>
    <div class="form-group">
      <label for="inputEmail" class="col-lg-2 control-label">Email</label>
      <div class="col-lg-10">
        <input type="text" class="form-control" id="inputEmail" placeholder="Email">
      </div>
    </div>
    <div class="form-group">
      <label for="inputPassword" class="col-lg-2 control-label">Password</label>
      <div class="col-lg-10">
        <input type="password" class="form-control" id="inputPassword" placeholder="Password">
        <div class="checkbox">
          <label>
            
    <div class="form-group">
      <div class="col-lg-10 col-lg-offset-2">
        <button type="reset" class="btn btn-default">Cancel</button>
        <button type="submit" class="btn btn-primary">Submit</button>
      </div>
    </div>
  </fieldset>
</form>


</div>
    <div class="form-group">
      <label for="inputEmail" class="col-lg-2 control-label">Last Name</label>
      <div class="col-lg-10">
        <input type="text" class="form-control" id="L_name" placeholder="Last Name">
      </div>
    </div>
    <div class="form-group">
      <label for="inputEmail" class="col-lg-2 control-label">Email</label>
      <div class="col-lg-10">
        <input type="text" class="form-control" id="email" placeholder="Email">
      </div>
    </div>
    <div class="form-group">
      <label for="inputPassword" class="col-lg-2 control-label">Password</label>
      <div class="col-lg-10">
        <input type="password" class="form-control" id="Password" placeholder="Password">

      </div>
    </div>


"../../assets/image/back.png"



    <div class="container-fluid no-padding">
  <div class="row">
    <div class="col-md-12">
      <img src="../../assets/image/back.png" alt="placeholder 960" class="img-responsive" />
    </div>
  </div>
</div>


gmail
client id :
648874998258-0g4hg387q023hbs5063pac7co9vhvh0t.apps.googleusercontent.com
client key :
rDEuSUYDQJAFRPBRbJNtklCN

facebook
app id :
110139179705461


{
    status: 'connected',
    authResponse: {
        accessToken: '...',
        expiresIn:'...',
        signedRequest:'...',
        userID:'...'
    }
}Copy Code
status specifies the 

html...........

<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '110139179705461',
      cookie     : true,
      xfbml      : true,
      version    : 'v2.8'
    });
    FB.AppEvents.logPageView();   
  };

  (function(d, s, id){
     var js, fjs = d.getElementsByTagName(s)[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement(s); js.id = id;
     js.src = "//connect.facebook.net/en_US/sdk.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));
</script>


(function()
{
    angular
        .module("WhiteBoardApp")
        .controller("LoginController",LoginController);
        function LoginController(UserService, $location, $rootScope)
        {
            var vm = this;
            vm.login= login;
            function login(user)
            {
                UserService.login(user, function(response){

                    if(response == null)
                        {

                        }
                        else{
                            $rootScope.currentUser = response;
                            console.log("Logged in..");
                            $location.url("/home");
                        }
                    console.log(response);
                });
            }
        }
})

(function()
{
    angular
            .module("WhiteBoard")
            .factory("UserService",UserService);
function UserService($http)
{
    var service={
        createUser: createUser
    };
    return service;

    function createUser(user, callback)
    {
        $http.post("http://localhost:3040/api/contacts",user)
        .success(callback);
    }

    function LoginUser(user, callback)
    {
        $http.post("http://localhost:3040/api/contacts",user)
        .success(callback);
    }
}
})();


db.getCollection('contacts').find({},{"password":1 ,"email":1})


api key:
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


var transporter = nodemailer.createTransport({
  service: 'gmail',
  auth: {
    user: 'anshul.saxena04@adnatesolutions.com',
    pass: '*****'
  }
});

var mailOptions = {
  from: 'anshul.saxena04@adnatesolutions.com',
  to: 'anshul.saxena04@adnatesolutions.com',
  subject: 'Sending Email using Node.js',
  text: 'That was easy!'
};

transporter.sendMail(mailOptions, function(error, info){
  if (error) {
    console.log(error);
  } else {
    console.log('Email sent: ' + info.response);
  }
});


var transporter = nodemailer.createTransport({
    service: 'gmail',
    auth: {
      user: 'anshul.saxena@adnatesolutions.com',
      pass: '00@Nshul'
    }
  });
  
  var mailOptions = {
    from: 'anshul.saxena@adnatesolutions.com',
    to: 'anshul.saxena@adnatesolutions.com',
    subject: 'Welcome to Adnate IOT',
    html: '<h1><center><font face="Trebuchet MS" color="38383C"><b>Welcome to Adnate IOT</b></font></center></h1><font face="Trebuchet MS" color="black" size="-1"><p>Hi, thanks for signing up! Please enjoy IOT free services on us! You’re one step close to awesome journey of IOT.</p></font><center><a href="http://localhost:4200/login"><br><input type="submit"  value=" Click here to Login " style="font-size:10pt;color:white;background-color:green;border:2px solid #336600;padding:11px"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#"><input type="submit"  value=" Verify your account " style="font-size:10pt;color:white;background-color:blue;border:2px solid #336600;padding:11px"></a></center>'
  };
  
  transporter.sendMail(mailOptions, function(error, info){
    if (error) {
      console.log(error);
    } else {
      console.log('Email sent: ' + info.response);
    }
  });
  <a href="+link+"><br><input type="submit"  value=" Click here to Verify " style="font-size:10pt;color:white;background-color:blue;padding:11px"></a></center>