Giter VIP home page Giter VIP logo

Comments (9)

kingdominc avatar kingdominc commented on July 27, 2024 1

I had this issue at first also. I was able to solve by modifying the cookie_domain. Since I was using an IP as my base url (which is a bad idea) I had to remove the prefix of "." from the cookie_domain in the config.php file.

from hoosk.

mohsen-sojoudi avatar mohsen-sojoudi commented on July 27, 2024 1

If you are using XAMPP or any local server Just add the following line in your index.php at the root folder
session_start();

from hoosk.

callumb avatar callumb commented on July 27, 2024

Scratch above, Fixed it with a coupe of tweaks:
File: hoosk/hoosk0/controllers/admin/Admin.php Line 68.

Replace: $password = $this->input->post('password');

With: $password = md5($this->input->post('password').SALT);

Then did this:
File: hoosk/hoosk0/controllers/config/config Line 383.

Set: $config['cookie_domain'] = ".".EMAIL_URL;

To: $config['cookie_domain'] = "";

And we are all good again.

from hoosk.

milstrike avatar milstrike commented on July 27, 2024

I did the same thing.., but still nothing..,

from hoosk.

3xmo avatar 3xmo commented on July 27, 2024

The problem here is that there is no database entry for the admin user only for a demo user.

Workaround:
go to "hoosk/hossk0/Hoosk_model.php"

and insert the following function:
" function createUser2() {
// Create the user account
$data = array(
'userName' => 'admin',
'email' => '[email protected]',
'password' => md5('password'.SALT),
);
$this->db->insert('hoosk_user', $data);
}"

The go to "hoosk/hossk0/controllers/admin/Admin.php" and edit this funtion:
"public function login()
{
$this->data['header'] = $this->load->view('admin/headerlog', '', true);
$this->data['footer'] = $this->load->view('admin/footer', '', true);
$this->load->view('admin/login', $this->data);
}"
to this:
"public function login()
{
$this->Hoosk_model->createUser2();

	$this->data['header'] = $this->load->view('admin/headerlog', '', true);
	$this->data['footer'] = $this->load->view('admin/footer', '', true);
	$this->load->view('admin/login', $this->data);
}"

Doing so a new user will be created when you visit to the login page. When you have visited the login page once you can revert the edits and everything will be fine.

You may want to check the database ("users") how many new admin accounts you have created by doing this ;).

Cheers

from hoosk.

havok89 avatar havok89 commented on July 27, 2024

The demo account has full admin access and can be used to create a new account once logged in

from hoosk.

samuelesantoni avatar samuelesantoni commented on July 27, 2024

Hi, i have the same problem. If i do the login i can't enter. Some solution please?

from hoosk.

GaneshKandu avatar GaneshKandu commented on July 27, 2024

I did the same thing but still not working

from hoosk.

GaneshKandu avatar GaneshKandu commented on July 27, 2024

installation works in root only
if you install in sub-directory it will not works with login
its issue of cookie session name

from hoosk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.