controllers

package
v0.0.0-...-3000b32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorController

type ErrorController struct {
	MainController
}

ErrorController manage error page

func (*ErrorController) Error404

func (c *ErrorController) Error404()

Error404 func for 404 error

func (*ErrorController) Error500

func (c *ErrorController) Error500()

Error500 func for 500 error

func (*ErrorController) ErrorDb

func (c *ErrorController) ErrorDb()

ErrorDb func for db error

type MainController

type MainController struct {
	beego.Controller
}

MainController è il maincontroller del portale

func (*MainController) Forgot

func (c *MainController) Forgot()

Forgot func help user to restore password if they forgot it DOTO: per sicurezza dal messaggio non si dovrebbe capire se la mail esiste o meno

func (*MainController) Get

func (c *MainController) Get()

Get function check if user are logged

func (*MainController) Login

func (c *MainController) Login()

Login func manage User's login TODO la gestione dei permessi utente non è molto sicura, forse è meglio dividere i permessi in una tabella a parte BUG** LE MODIFICHE EFFETTUATE ALLE APPLICAZIONI E QUINDI AL MENU SONO VALIDE SOLO DOPO AVER RILOGGATO per migliorare sicurezza dare sempre lo stesso errore "password sbagliata o account inesistente" SOSTITUIRE USO PDBKDF2 CON BCRYPTO

func (*MainController) Logout

func (c *MainController) Logout()

Logout fun delete session and logout user

func (*MainController) Notice

func (c *MainController) Notice()

Notice show flash message

func (*MainController) Profile

func (c *MainController) Profile()

Profile func: User's can manage their account information

func (*MainController) Register

func (c *MainController) Register()

Register func register user in the db TODO: migliorare errore validazione campo email BUG: se l'account esiste già crea comunque la tabella app

func (*MainController) Remove

func (c *MainController) Remove()

Remove func delete user from DB

func (*MainController) Reset

func (c *MainController) Reset()

Reset func reset password if user forgot login credentials

func (*MainController) Verify

func (c *MainController) Verify()

Verify func verifing user by id key TODO tradurre messaggio di conferma verifica

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL