examples/browser/app.js
function login(){
    console.log('Login called');
    var username = document.getElementById('login-username').value;
    var password = document.getElementById('login-password').value;
// {username:username, password:password}
    grout.login('google').then(function (loginInfo){
      console.log('successful login:', loginInfo);
      setStatus();
    }, function (err){
      console.error('login() : Error logging in:', err);
    });
  }
function login(){
    console.log('Login called');
    var username = document.getElementById('login-username').value;
    var password = document.getElementById('login-password').value;
// {username:username, password:password}
    grout.login('google').then(function (loginInfo){
      console.log('successful login:', loginInfo);
      setStatus();
    }, function (err){
      console.error('login() : Error logging in:', err);
    });
  }
function login ( ) { console . log ( 'Login called' ) ; var username = document . getElementById ( 'login-username' ) . value ; var password = document . getElementById ( 'login-password' ) . value ; // {username:username, password:password} grout . login ( 'google' ) . then ( function ( loginInfo ) { console . log ( 'successful login:' , loginInfo ) ; setStatus ( ) ; } , function ( err ) { console . error ( 'login() : Error logging in:' , err ) ; } ) ; }
Login user based on entered credentials
Login user based on entered credentials