examples/browser/app.js
function signup(){
    console.log('signup called');

    var name = document.getElementById('signup-name').value;
    var username = document.getElementById('signup-username').value;
    var email = document.getElementById('signup-email').value;
    var password = document.getElementById('signup-password').value;

    grout.signup().then(function(){
      console.log('successful logout');
      setStatus();
    }, function(err){
      console.error('logout() : Error logging out:', err);
    });
  }
function signup(){
    console.log('signup called');

    var name = document.getElementById('signup-name').value;
    var username = document.getElementById('signup-username').value;
    var email = document.getElementById('signup-email').value;
    var password = document.getElementById('signup-password').value;

    grout.signup().then(function(){
      console.log('successful logout');
      setStatus();
    }, function(err){
      console.error('logout() : Error logging out:', err);
    });
  }
function signup ( ) { console . log ( 'signup called' ) ; var name = document . getElementById ( 'signup-name' ) . value ; var username = document . getElementById ( 'signup-username' ) . value ; var email = document . getElementById ( 'signup-email' ) . value ; var password = document . getElementById ( 'signup-password' ) . value ; grout . signup ( ) . then ( function ( ) { console . log ( 'successful logout' ) ; setStatus ( ) ; } , function ( err ) { console . error ( 'logout() : Error logging out:' , err ) ; } ) ; }
Signup and login as a new user
Signup and login as a new user