from flask_login import UserMixin


class User(UserMixin):
    # proxy for a database of users
    user_database = {"test": ("slot", "test"), "live": ("slot", "live")}

    def __init__(self, username, password):
        self.id = username
        self.password = password

    @classmethod
    def get(cls, id):
        return cls.user_database.get(id)

from flask_login import UserMixin


class User(UserMixin):

    def __init__(self, username, password):
        self.id = username
        self.password = password

Remove redundant parts of User class.
Remove redundant parts of User class.

  from flask_login import UserMixin
  
  
  class User(UserMixin):
-     # proxy for a database of users
-     user_database = {"test": ("slot", "test"), "live": ("slot", "live")}
  
      def __init__(self, username, password):
          self.id = username
          self.password = password
  
-     @classmethod
-     def get(cls, id):
-         return cls.user_database.get(id)
- 
Remove redundant parts of User class.
## Code Before:
from flask_login import UserMixin


class User(UserMixin):
    # proxy for a database of users
    user_database = {"test": ("slot", "test"), "live": ("slot", "live")}

    def __init__(self, username, password):
        self.id = username
        self.password = password

    @classmethod
    def get(cls, id):
        return cls.user_database.get(id)

## Instruction:
Remove redundant parts of User class.
## Code After:
from flask_login import UserMixin


class User(UserMixin):

    def __init__(self, username, password):
        self.id = username
        self.password = password
