Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
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
TimeOut
TimeOutAdmin
Commits
d49d54cb
Commit
d49d54cb
authored
Nov 20, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.techware.co.in/timeout/timeOut
into tobin
parents
d19e7118
2a2e2a54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Organizer_model.php
application/models/Organizer_model.php
+1
-1
No files found.
application/models/Organizer_model.php
View file @
d49d54cb
...
@@ -464,10 +464,10 @@ class Organizer_model extends CI_Model {
...
@@ -464,10 +464,10 @@ class Organizer_model extends CI_Model {
$sql
=
$this
->
db
->
query
(
"SELECT * FROM checker WHERE username='"
.
$data
[
'email_id'
]
.
"' AND password='"
.
md5
(
$data
[
'password'
])
.
"' AND status='1'"
);
$sql
=
$this
->
db
->
query
(
"SELECT * FROM checker WHERE username='"
.
$data
[
'email_id'
]
.
"' AND password='"
.
md5
(
$data
[
'password'
])
.
"' AND status='1'"
);
}
}
if
(
empty
(
$sql
)
||
empty
(
$custData
=
$sql
->
row_array
())){
if
(
empty
(
$sql
)
||
empty
(
$custData
=
$sql
->
row_array
())){
$this
->
db
->
update
(
'provider'
,
array
(
'fcm_token'
=>
$data
[
'fcm_token'
]),
array
(
'provider_id'
=>
$custData
[
'id'
]));
$res
=
array
(
'status'
=>
0
,
'message'
=>
'User Does not Exist'
,
'code'
=>
'ER09'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'User Does not Exist'
,
'code'
=>
'ER09'
);
return
$res
;
return
$res
;
}
}
$this
->
db
->
update
(
'provider'
,
array
(
'fcm_token'
=>
$data
[
'fcm_token'
]),
array
(
'provider_id'
=>
$custData
[
'id'
]));
$res
=
array
(
'status'
=>
1
,
'message'
=>
'Logged In Successfully'
,
'data'
=>
$custData
[
'id'
]);
$res
=
array
(
'status'
=>
1
,
'message'
=>
'Logged In Successfully'
,
'data'
=>
$custData
[
'id'
]);
}
catch
(
Exception
$e
){
}
catch
(
Exception
$e
){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something Went South'
,
'code'
=>
'ER06'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something Went South'
,
'code'
=>
'ER06'
);
...
...
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