2014-12-12 22:39:55 +01:00
|
|
|
|
// swad_account.h: user's account
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_ACC
|
|
|
|
|
#define _SWAD_ACC
|
|
|
|
|
/*
|
|
|
|
|
SWAD (Shared Workspace At a Distance in Spanish),
|
|
|
|
|
is a web platform developed at the University of Granada (Spain),
|
|
|
|
|
and used to support university teaching.
|
|
|
|
|
|
|
|
|
|
This file is part of SWAD core.
|
2019-01-07 21:52:19 +01:00
|
|
|
|
Copyright (C) 1999-2019 Antonio Ca<EFBFBD>as Vargas
|
2014-12-12 22:39:55 +01:00
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/********************************** Headers **********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2015-10-16 02:24:29 +02:00
|
|
|
|
#include <stdbool.h> // For boolean type
|
|
|
|
|
|
2014-12-12 22:39:55 +01:00
|
|
|
|
#include "swad_constant.h"
|
|
|
|
|
#include "swad_user.h"
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/****************************** Public constants *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************** Public types *******************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2016-06-17 23:38:32 +02:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
Acc_REQUEST_REMOVE_USR,
|
|
|
|
|
Acc_REMOVE_USR,
|
|
|
|
|
} Acc_ReqOrRemUsr_t;
|
|
|
|
|
|
2014-12-12 22:39:55 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/****************************** Public prototypes ****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2016-03-01 03:16:29 +01:00
|
|
|
|
void Acc_PutLinkToCreateAccount (void);
|
2016-10-12 14:02:56 +02:00
|
|
|
|
void Acc_ShowFormMyAccount (void);
|
2016-09-22 13:33:42 +02:00
|
|
|
|
void Acc_CheckIfEmptyAccountExists (void);
|
2019-07-04 10:39:42 +02:00
|
|
|
|
void Acc_ShowFormCreateMyAccount (void);
|
2016-09-22 13:33:42 +02:00
|
|
|
|
|
2016-03-21 19:52:40 +01:00
|
|
|
|
void Acc_ShowFormGoToRequestNewAccount (void);
|
2018-10-15 14:07:12 +02:00
|
|
|
|
void Acc_ShowFormChgMyAccount (void);
|
2018-10-16 01:36:13 +02:00
|
|
|
|
void Acc_ShowFormChgOtherUsrAccount (void);
|
2018-10-15 14:07:12 +02:00
|
|
|
|
void Acc_PutLinkToRemoveMyAccount (void);
|
2016-11-08 00:58:32 +01:00
|
|
|
|
bool Acc_CreateMyNewAccountAndLogIn (void);
|
|
|
|
|
void Acc_CreateNewUsr (struct UsrData *UsrDat,bool CreatingMyOwnAccount);
|
2014-12-12 22:39:55 +01:00
|
|
|
|
void Acc_AfterCreationNewAccount (void);
|
|
|
|
|
|
2016-06-17 23:38:32 +02:00
|
|
|
|
void Acc_GetUsrCodAndRemUsrGbl (void);
|
|
|
|
|
void Acc_ReqRemAccountOrRemAccount (Acc_ReqOrRemUsr_t RequestOrRemove);
|
2014-12-12 22:39:55 +01:00
|
|
|
|
|
2016-06-17 23:38:32 +02:00
|
|
|
|
bool Acc_CheckIfICanEliminateAccount (long UsrCod);
|
2015-09-16 00:15:20 +02:00
|
|
|
|
void Acc_AskIfRemoveMyAccount (void);
|
|
|
|
|
void Acc_RemoveMyAccount (void);
|
2014-12-12 22:39:55 +01:00
|
|
|
|
void Acc_CompletelyEliminateAccount (struct UsrData *UsrDat,
|
|
|
|
|
Cns_QuietOrVerbose_t QuietOrVerbose);
|
|
|
|
|
|
2018-10-16 01:36:13 +02:00
|
|
|
|
void Acc_PutIconToChangeUsrAccount (void);
|
|
|
|
|
|
2014-12-12 22:39:55 +01:00
|
|
|
|
#endif
|