Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Juan Montilla
/
TBW2223_equipo12
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ecc5d718
authored
May 01, 2023
by
Juan Montilla
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Prueba2
parent
35c4c3af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
.env
app/Controllers/User.php
app/Views/pages/home.php
.env
View file @
ecc5d718
...
...
@@ -20,10 +20,9 @@ CI_ENVIRONMENT = development
# APP
#--------------------------------------------------------------------
# app.baseURL = '
'
app.baseURL = 'https://tbw2223-12-mrtjcmh.oa.r.appspot.com
'
# If you have trouble with `.`, you could also use `_`.
# app_baseURL = 'https://tbw2223-12-mrtjcmh.oa.r.appspot.com'
app_baseURL = 'http://localhost'
# app_baseURL = 'http://localhost'
# app.forceGlobalSecureRequests = false
# app.CSPEnabled = false
...
...
@@ -32,6 +31,13 @@ CI_ENVIRONMENT = development
# DATABASE
#--------------------------------------------------------------------
# database.default.hostname = localhost
# database.default.database = webapp
# database.default.username = webapp_user
# database.default.password = FOE6f35AUtbL015D
# database.default.DBDriver = MySQLi
database.default.hostname = 34.65.71.245
database.default.database = webapp
database.default.username = mrtjcmh
...
...
app/Controllers/User.php
View file @
ecc5d718
...
...
@@ -50,11 +50,6 @@ class User extends BaseController
if
(
$user
)
{
$session
->
set
(
'logged_in'
,
TRUE
);
$session
->
set
(
'user'
,
$user
);
<<<<<<<
HEAD
return
redirect
()
->
to
(
base_url
(
'/home'
));
}
else
{
$session
->
setFlashdata
(
'msg'
,
'Credenciales incorrectas'
);
=======
return
$this
->
response
->
setStatusCode
(
200
)
->
setJSON
([
'text'
=>
'Usuario logeado'
]);
...
...
@@ -62,7 +57,6 @@ class User extends BaseController
return
$this
->
response
->
setStatusCode
(
403
)
->
setJSON
([
'text'
=>
'Usuario no logeado'
]);
>>>>>>>
origin
/
developmanu
}
}
else
{
return
$this
->
output
->
set_content_type
(
'application/json'
)
...
...
app/Views/pages/home.php
View file @
ecc5d718
...
...
@@ -106,7 +106,7 @@
<nav>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item"
><a
href=
"index.html"
>
HOME
</a></li>
<li
class=
"breadcrumb-item active"
>
RECETAS
</li>
<li
class=
"breadcrumb-item active"
>
RECETAS
S
</li>
</ol>
</nav>
</div>
<!-- End Page Title -->
...
...
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