Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4007CEM/login.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45 lines (36 sloc)
916 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef login_h | |
#define login_h | |
#endif //login_h | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
// login.h | |
// BasketBallGame | |
// | |
// Created by Suraj Mann on 21/02/2020. | |
// Copyright © 2020 Suraj Mann. All rights reserved. | |
// | |
/** To create user login - Suraj **/ | |
//declaring class for user login - Suraj | |
class Login | |
{ | |
// sensitive data being stored as private variables - Suraj | |
private: | |
std::string userName; | |
std::string password; | |
std::vector<std::string> users_list; | |
public: | |
//constructor method | |
Login(); | |
Login(std::string name, std::string pass_word) | |
{ | |
//initialise variables | |
this->userName = name; | |
this->password = pass_word; | |
} | |
// creating function to create user login | |
void set_user_credentials(); | |
// creating function to check user login details | |
void check_user_credentials(); | |
}; |