Given these functions:
function func1() { var dfd = $.Deferred(); setTimeout(function() { dfd.resolve(\'Password\'); }, 1000); return dfd.promi
It's not that complicated (either use .then or .pipe, they are both the same since jQuery 1.8 I think).
.then
.pipe
func1().then(func2).done(function(message) { alert(message); });
Since func2 returns a new deferred object, the .done callback is attached to that one instead.
func2
.done
DEMO