Skip to content

Commit

Permalink
Fixed: Form bases login when using reverse proxies didn't work. Closes
Browse files Browse the repository at this point in the history
…#523
  • Loading branch information
[email protected] authored and [email protected] committed Jan 28, 2017
1 parent 8562d43 commit 30df4f4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 80 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# NZB Hydra changelog

----------
### 0.2.192
Fixed: Form bases login when using reverse proxies didn't work. See [#523](https://github.com/theotherp/nzbhydra/issues/523).


### 0.2.191
Fixed: If configured log IP for failed form logins. See [#448](https://github.com/theotherp/nzbhydra/issues/448).

Expand Down
82 changes: 6 additions & 76 deletions static/js/nzbhydra.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/js/nzbhydra.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui-src/js/hydra-auth-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function HydraAuthService($q, $rootScope, $http, $cookies, bootstrapped) {

function login(username, password) {
var deferred = $q.defer();
return $http.post("/auth/login", data = {username: username, password: password}).then(function (data) {
return $http.post("auth/login", data = {username: username, password: password}).then(function (data) {
bootstrapped = data.data;
loggedIn = true;
$rootScope.$broadcast("user:loggedIn");
Expand All @@ -58,7 +58,7 @@ function HydraAuthService($q, $rootScope, $http, $cookies, bootstrapped) {

function logout() {
var deferred = $q.defer();
return $http.post("/auth/logout").then(function(data) {
return $http.post("auth/logout").then(function(data) {
$rootScope.$broadcast("user:loggedOut");
bootstrapped = data.data;
loggedIn = false;
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.191
0.2.192

0 comments on commit 30df4f4

Please sign in to comment.