Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
51dd37a9
Commit
51dd37a9
authored
May 31, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authentification first step
parent
a7d29b56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
README.md
README.md
+3
-1
qa-config-example.php
qa-config-example.php
+2
-0
qa-external-users.php
qa-external/qa-external-users.php
+9
-7
No files found.
README.md
View file @
51dd37a9
...
...
@@ -4,10 +4,12 @@
-
dupliquer
`.htaccess-example`
et
`qa-config-example.php`
et les renommer en enlevant le mot
`example`
. Dans
`qu-config.php`
ajouter le nom de la base de donnée, l’utilisateur etc. :
```
php
define
(
'QA_MYSQL_HOSTNAME'
,
'localhost'
);
define
(
'QA_MYSQL_HOSTNAME'
,
'localhost'
);
define
(
'QA_MYSQL_USERNAME'
,
'lacagette'
);
define
(
'QA_MYSQL_PASSWORD'
,
'cagette2015'
);
define
(
'QA_MYSQL_DATABASE'
,
'openbarlacagette'
);
define
(
'QA_EXTRA_LOGIN'
,
'http://localhost:8080/members/extra_login'
);
```
Créer une database mySQL
...
...
qa-config-example.php
View file @
51dd37a9
...
...
@@ -39,6 +39,8 @@
define
(
'QA_MYSQL_PASSWORD'
,
'your-mysql-password'
);
define
(
'QA_MYSQL_DATABASE'
,
'your-mysql-db-name'
);
define
(
'QA_EXTRA_LOGIN'
,
'http://localhost:8080/members/extra_login'
);
/*
Ultra-concise installation instructions:
...
...
qa-external
-example
/qa-external-users.php
→
qa-external/qa-external-users.php
View file @
51dd37a9
...
...
@@ -34,6 +34,8 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
// Loading configuration
require_once
'qa-config.php'
;
/**
* ==========================================================================
...
...
@@ -50,7 +52,7 @@ function qa_get_mysql_user_column_type()
{
// Set this before anything else
return
null
;
return
'VARCHAR(32)'
;
/*
Example 1 - suitable if:
...
...
@@ -104,9 +106,9 @@ function qa_get_login_links($relative_url_prefix, $redirect_back_to_url)
// Until you edit this function, don't show login, register or logout links
return
array
(
'login'
=>
null
,
'register'
=>
null
,
'logout'
=>
null
'login'
=>
QA_EXTRA_LOGIN
,
'register'
=>
QA_EXTRA_LOGIN
,
'logout'
=>
QA_EXTRA_LOGIN
,
);
/*
...
...
@@ -118,9 +120,9 @@ function qa_get_login_links($relative_url_prefix, $redirect_back_to_url)
* Your logout page: http://www.mysite.com/logout
return array(
'login' => 'http://
www.mysite.com/login
',
'register' => 'http://
www.mysite.com/register
',
'logout' => 'http://
www.mysite.com/logou
t',
'login' => 'http://
localhost:8080/members_space/home
',
'register' => 'http://
localhost:8080/members_space/home
',
'logout' => 'http://
localhost:8080/website/deconnec
t',
);
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment