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 400157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:55:00+00:00 2026-05-12T16:55:00+00:00

I have the following scenario in zend framework: Data Table of students Table of

  • 0

I have the following scenario in zend framework:

Data
Table of students
Table of classes, which contain many students each.
Table of assignments, each of which is assigned to a class and given a password

I want students to be able to access an assignment given that assignment’s id and shared password, but for the application to note which student signed in to the assignment. Zend_Auth however expects one table to contain both the username and the password, but in my situation the username is in the students table, and the password is in the assignments table.

Can anyone suggest a good way of handling the student login where they can all share one password. A way to authenticate with just a username and no password would work, as then I could do the password check in a separate conditional.

  • 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-05-12T16:55:01+00:00Added an answer on May 12, 2026 at 4:55 pm

    I think your best bet would really be to just write your own adapter. Something like this would most likely work:

    class MyAuthAdapter implements Zend_Auth_Adapter_Interface
    {
        protected $_username;
        protected $_password;
        protected $_assignment_id;
    
        /**
         * Sets username, password, and assignemnt ID for authentication
         *
         * @return void
         */
        public function __construct($username,$password,$assignment_id)
        {
            $this->_username = $username;
            $this->_password = $password;
            $this->_assignment_id = $assignment_id;
        }
    
        /**
         * Performs an authentication attempt
         *
         * @throws Zend_Auth_Adapter_Exception If authentication cannot
         *                                     be performed
         * @return Zend_Auth_Result
         */
        public function authenticate()
        {
            // logic here to check everything out and erturn a new Zend_Auth_Result     
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following scenario. I have created an ASP.NET web application (framework 3.5)
Have the following scenario. I have a few form, which essentially have a few
I have the following scenario: I have 2 projects: Proj1 Proj2 Each of these
I have following scenario: alt text http://static.zooomr.com/images/7579022_e64808b855_o.png We have a WebService which poses as
I have the following scenario in nHibernate: <class name=TestApp.Components.User,TestApp.Components table=Users> <id name=Id column=UserId type=Int32
I have following scenario... Massive Micro-ORM .NET framework 4.0 SQL Server 2008R2 Model: public
I have the following scenario: 1 List which contains the months of the year:
I have the following scenario. I'm working with a server which has a lib
I have the following scenario. I have one table in the database A that
I have following scenario Then I have function which checks following condition: var callback

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.