Comments (7)
will do boi!
from highfive.
@moz125 can you provide me a list of functions that would be required related to user profiling(Sign Up, Login, Account Recovery)
Some sample function names are as follows:
username_exists($username)
email_exists($email)
match_password($username, $salted_password)
from highfive.
Like as in a list of functions pre-made, or just their names, parameters, outputs, and description?
from highfive.
Like as in a list of functions pre-made, or just their names, parameters, outputs, and description?
It would be good if you provide the description also but names, parameters and outputs will also do.
from highfive.
Commenting on behalf of @moz125 :
======================>SIGN_UP<=======================
- username_exists($username)
@description:- Checks to see if the username is present in the db or not.
@parameters:- $username [String].
@returns:- Boolean.
- email_exists($email)
@description:- Checks to see if the email is present in the db or not.
@parameters:- $email [String].
@returns:- Boolean.
- confirm_password($password_1, $password_2)
@description:- Check if the two given passwords match.
@parameters:- $password_1 [String], $password_2 [String].
@returns:- Boolean.
-
Create the user using the user class.
========================>LOGIN<======================== -
SAME AS ABOVE
-
SAME AS ABOVE
-
get_user_id($email)
@description:- Get the uid of the user to make it eaiser in the long run, save it in a global variable to use after verification.
@parameters:- $email [String].
@returns:- $uid [int].
- verify_password($uid, $stored_password, $entered_password)
@description:- Verify the password entered by the user is correct.
@parameters:- $uid [int], $stored_password [String], $entered_password [String]
@returns:- Boolean.
========================>AFTER LOGIN<====================
- get_groups_id($uid)
@description:- Get the ids of all the groups the user is a part of.
@parameters:- $uid [int]
@returns:- $uid list[int].
- get_friends($uid)
@description:- Get the uids of all the friends the user has.
@parameters:- $uid [int]
@returns:- $uid list[int].
- get_group_members($gid)
@description:- Get the uids of all the users in a group.
@parameters:- $gid [int]
@returns:- $uid list[int].
- get_posts($uid)
@description:- Get the pids and aids of all the posts the user has.
@parameters:- $uid [int]
@returns:- 2d list[$pid list[int], $aid list[int]].
- get_attachments($aid)
@description:- Get the source links of all the attachments the user has.
@parameters:- $aid [int]
@returns:- $path list[String].
- load_user_preferences($uid)
@description:- Get the list of preferences the user has.
@parameters:- $uid [int]
@returns:- associative array having all preferences in key value pairs.
- load_group_preferences($gid)
@description:- Get the list of preferences the group has.
@parameters:- $gid [int]
@returns:- associative array having all preferences in key value pairs.
===================>RECOVERY<======================
- password_reset($uid, $old, $new)
@description:- Resets the users password.
@parameters:- $uid [int], $old [String], $new [String]
@returns:- associative array having all preferences in key value pairs.
- generate_recovery_code($uid)
@description:- Generates and Stores a recovery code in the db and also emails it to the user.
@parameters:- $uid [int]
@returns:- Boolean depending on whether email sent or not.
from highfive.
@all-contributors please add @moz125 for ideas
from highfive.
I've put up a pull request to add @moz125! 🎉
from highfive.
Related Issues (18)
- Add Coding Conventions HOT 8
- Logo For HighFive HOT 5
- Add Models for all the database tables HOT 1
- Create UI for User Profiling HOT 4
- Create an ERD for Database HOT 2
- Generate and Maintain Documentation for Code
- Create UI for 'Settings' Pages HOT 1
- Create UI for Profile Page HOT 1
- Create a footer for website HOT 2
- Adjustments for Main Page for users. HOT 5
- Create Controller for 'Chat'
- Create Controller for 'Group Management'
- Add event in database to reset status
- Integrate Chat functionality
- Integrate User Profiling functionality HOT 2
- Add Logout button
- Error in Reply Div Display
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highfive.