Commit 2a348bfe authored by Randall Leeds's avatar Randall Leeds

Fix authentication reset

On $reset event, authentication model fields weren't being cleared.
parent c17f6a2b
......@@ -10,7 +10,7 @@ authentication = ->
controller: [
'$scope', 'authentication',
($scope, authentication) ->
$scope.$on '$reset', => angular.extend $scope, base
$scope.$on '$reset', => angular.extend $scope.model, base
$scope.submit = (form) ->
return unless form.$valid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment