Browse Source

Better log in case of nonce errors

https://github.com/FreshRSS/FreshRSS/issues/676
Alexandre Alapetite 11 years ago
parent
commit
a235f003bd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Controllers/javascriptController.php

+ 2 - 0
app/Controllers/javascriptController.php

@@ -39,6 +39,8 @@ class FreshRSS_javascript_Controller extends Minz_ActionController {
 			} catch (Minz_Exception $me) {
 			} catch (Minz_Exception $me) {
 				Minz_Log::warning('Nonce failure: ' . $me->getMessage());
 				Minz_Log::warning('Nonce failure: ' . $me->getMessage());
 			}
 			}
+		} else {
+			Minz_Log::notice('Nonce failure due to invalid username!');
 		}
 		}
 		$this->view->nonce = '';	//Failure
 		$this->view->nonce = '';	//Failure
 		$this->view->salt1 = '';
 		$this->view->salt1 = '';