Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7746501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:17:39+00:00 2026-06-01T10:17:39+00:00

So, there is problem – I have the order to write web-app on Kohana

  • 0

So, there is problem – I have the order to write web-app on Kohana (no choice) and until yesterday I had no experience with this framework (only in Rails). But anyway I googled and created the authentification on site via net steps:
1: using standart SQL-code in Kohana I created tables for Auth.
2: tutn on ORM and Auth
3: create action login()

public function action_login()
{
    $auth = Auth::instance();



    if ($auth->logged_in())
    {
        return $this->request->redirect("welcome/view");
    };

    if ($_POST)
    {
        $user = ORM::factory("user");

        $status = $auth->login($_POST["username"],$_POST["password"]);


        if ($status)
        {
            $this->request->redirect("welcome/view");
        }
        else
        {

            echo "Failed to login";
        }
    };
    $this->response->body(View::factory("login"));
}

But whatever I do I get echo “Failed to login”;.

Is there any tools to define what’s wrong happening ? Some logs ?
Or, may be, I do something wrong at common….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:17:41+00:00Added an answer on June 1, 2026 at 10:17 am

    To answer your question: no there are no obvious tools to dig into Auth. You’re best off going into modules/auth and look into the files and dump out information to Kohana::log or Kohana::debug to debug the errors.

    I think the problem with your code is that in Kohana 3.2, $_POST is unset. You should use this instead:

     $status = $auth->login($this->request->post("username"), $this->request->post("password"));
    

    Should work after that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem: there is this enemy which rotates to my player. While
i have done this quiz but is there problem with IE shows flash movie
I have searched on google and stackoverflow for this problem there are several questions
Is there a problem with this type of implementation to wait for a batch
Is there significant problem, if I write the code for embedded linux system using
Consider this problem: There's a square grid defined, each tile being either passable (1)
here is the problem : there is classic asp app which is calling lame.exe
I have next problem: There is jquery accordion control. One of tab have div
I have a problem There is one iphone software product of our company and
I have the following problem: there's a user, A , who has to execute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.