Documentation ¶
Index ¶
- type ErrorController
- type MainController
- func (c *MainController) Forgot()
- func (c *MainController) Get()
- func (c *MainController) Login()
- func (c *MainController) Logout()
- func (c *MainController) Notice()
- func (c *MainController) Profile()
- func (c *MainController) Register()
- func (c *MainController) Remove()
- func (c *MainController) Reset()
- func (c *MainController) Verify()
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
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) 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) 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) 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