Commit 90fb13d3 authored by csillag's avatar csillag

Restore parameter passing on successful auth actions. Fixes #1210.

parent ebf06cae
......@@ -720,7 +720,7 @@ class Auth
for own _, ctrl of $scope when typeof ctrl?.$setPristine is 'function'
ctrl.$setPristine()
_success = ->
_success = (form) ->
_reset()
$scope.$emit 'success', form.$name
......@@ -738,7 +738,7 @@ class Auth
$scope.submit = (form) ->
angular.extend authentication, $scope.model
return unless form.$valid
authentication["$#{form.$name}"] _success, _error
authentication["$#{form.$name}"] (-> _success form), _error
class Editor
......
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