mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 05:14:34 -04:00
Add some comments
This commit is contained in:
@@ -103,6 +103,17 @@ class FreshRSS_user_Controller extends Minz_ActionController {
|
||||
$this->view->size_user = $entryDAO->size();
|
||||
}
|
||||
|
||||
/**
|
||||
* This action creates a new user.
|
||||
*
|
||||
* Request parameters are:
|
||||
* - new_user_language
|
||||
* - new_user_name
|
||||
* - new_user_passwordPlain
|
||||
* - new_user_email
|
||||
*
|
||||
* @todo clean up this method. Idea: write a method to init a user with basic information.
|
||||
*/
|
||||
public function createAction() {
|
||||
if (Minz_Request::isPost() && FreshRSS_Auth::hasAccess('admin')) {
|
||||
$db = FreshRSS_Context::$system_conf->db;
|
||||
@@ -178,6 +189,14 @@ class FreshRSS_user_Controller extends Minz_ActionController {
|
||||
Minz_Request::forward(array('c' => 'user', 'a' => 'manage'), true);
|
||||
}
|
||||
|
||||
/**
|
||||
* This action delete an existing user.
|
||||
*
|
||||
* Request parameter is:
|
||||
* - username
|
||||
*
|
||||
* @todo clean up this method. Idea: create a User->clean() method.
|
||||
*/
|
||||
public function deleteAction() {
|
||||
if (Minz_Request::isPost() && FreshRSS_Auth::hasAccess('admin')) {
|
||||
$db = FreshRSS_Context::$system_conf->db;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
/* TODO list
|
||||
* - Show help for username and password formats
|
||||
* - Don't show this page if there is no more free account slots
|
||||
* - Fix i18n
|
||||
*/
|
||||
?>
|
||||
<div class="prompt">
|
||||
<h1><?php echo _t('gen.auth.register'); ?></h1>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user