Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be.
0
votes
1answer
41 views
Basic sign-up method, testable and with try/catch [closed]
I am learning how to implement testing and try/catch statements into my code. I have a Laravel application with the following ...
3
votes
1answer
56 views
PHP password encryption algorithm
I've written a password encryption algorithm in PHP, which (I think) is not very vulnerable to rainbowtable attacks. It's just that I don't have a lot of experience with encryptions, nor PHP. But from ...
2
votes
1answer
53 views
3
votes
1answer
115 views
Basic login script for educational purposes
I have created a login script to demonstrate the usage of sessions in PHP. The focus is not on security, databases or encryption. The idea is to exemplify how you can use sessions to protect pages ...
5
votes
2answers
78 views
Password recovery program
This is a password recovery program I made, and I just want it checked out.
These aren't all the files for the login and register system, only the password recovery part. The columns in the ...
2
votes
2answers
85 views
Sharepoint Authentication Helpers
I'm working on a rather large SharePoint project that's going to contain helper classes for a variety of item levels (sites, webs, lists, items, etc').
When writing code I'm expecting that the same ...
1
vote
1answer
26 views
Parse.com simple query: login and display account balance
I was recently at a hackathon and saw quite a few people using Parse, so I decided to check it out and read some guides online. Can someone take a look at my code? I followed Parse documentation so it ...
3
votes
0answers
42 views
Simple administrator authentication page in PHP
I made a simple administrator page lock in PHP and I was wondering how secure it was. I want to use this script to secure administrator pages for my portfolio site but I want it to be fairly secure.
...
1
vote
1answer
35 views
Authentication management
I have the following code and I think it's almost impossible to read and to maintain. I prefer self-explaining and modular code where variable and function names tell what I'm trying to do, but I ...
3
votes
0answers
25 views
PL/pgSQL autologin token generation
Here's an excerpt from my migration script for my database for the new "remember me" login option for my web application.
Logging in with a valid username/password combination (authenticate_user) ...
6
votes
5answers
588 views
Creating Original Database Algorithm--Login System
For fun, I have been making a very basic login system in Python. I was going to look up an algorithm or something for user info storage and transfer, but then decided it would be more fun to come up ...
1
vote
0answers
88 views
Login authentication model
I have made my model global so that I can work only a model with several controllers. Is it good or bad practice? And according to this, is my login process secure?
Login check function in ...
1
vote
2answers
117 views
Open server asking for a password
It first creates a server and waits to connect. Once the client connects to the server he gets the line. If he puts the correct code he gets output -> good job. If not -> the software disconnects.
My ...
6
votes
4answers
183 views
Register/Login and authentication through terminal
This is a registration and login program I made in Python that runs through the terminal. I am new to programming so I didn't have any actual use for this, I simply made it for practice. Please give ...
0
votes
0answers
78 views
User login authentication
I started with OOP around 1 week ago and I would like to ask you to check my code and give me some tips and advice but also tell me what I'm doing completely wrong. I also know that my code is not ...
0
votes
0answers
40 views
Front-end login system
After some googling for about 2 days, I am here with a simple wordpress front-end login system.
Please let me know if there is anything wrong with it, or if there is anything I can do, for improving ...
5
votes
4answers
791 views
Basic OS login program
I have just finished the sololearn C++ course and wanted to create a basic login program in the vein of a basic operating system.
...
6
votes
1answer
104 views
Checking two text field for match and checking for null
Is this the most efficient way to do this? Any suggestions on some thing I might have missed or can do better?
...
1
vote
1answer
47 views
4
votes
2answers
249 views
“Remember me” functionality for a website
I have read a few SO threads to implement remember_me functionality.
Steps I have followed:
User clicks on login button and if passes client side validation, it goes to php Login page.
First time
...
3
votes
1answer
102 views
Authentication using PDO
I'm new to PDO, so I was wondering if you guys could check over my PDO code for efficiency (and if the PHP can be improved)
...
2
votes
1answer
115 views
Secure login system
The assignment is to create a login system secured for SQL injections and XSS.
It's in PHP and I'm using PDO with prepared statements obviously. Which from my point of view should protect against the ...
6
votes
1answer
91 views
One way encoding a password
I wrote a script that one way encrypts a user's password by generating a key, and multiplies by the ASCII value of the character and the ASCII value of the key character at (the position that the ...
2
votes
3answers
418 views
A very secure procedural MySQLI login script against injections
I know there are other ways to create a login script like Object Oriented, Prepared Statements and PDO, but how about those old MySQL PHP users like me trying to change from old style to the new ways? ...
8
votes
2answers
325 views
A PHP User System
This PHP User System was built with MySQLi and I also used Composer. I'm planning to improve this, and add more stuff and release it as a sort of a module for Composer.
User.php (Controller File in ...
5
votes
1answer
211 views
Avoiding callback chaining in authenticator
I'm developing an iOS Application in Swift that uses Google Cloud Endpoints as its backend. For now, I've just written the code for the user to login with his Gmail account and I've refactored it as ...
2
votes
1answer
190 views
PHP login system security using a database, cookies and sessions
I created a simple login system using just sessions but having to login every time gets annoying. That is why I'm no trying to save the sessions to my database linked to the user's account. I will ...
1
vote
1answer
109 views
Validate IP address and create a registration attempt
I'm a C++/Python developer attempting to learn JavaScript, but I'm struggling to write clean code. I've read that async.waterfall and Promises are two ways to flatten the code a bit, but my ...
0
votes
0answers
61 views
Simple login system in prolog
The code produces a dialog that allows a user to enter information, then verifies the information and allows the user to have access. Is there any way to improve the code?
...
5
votes
3answers
264 views
Login and registration functions
I'm currently learning C# as first programming language and I've made a simple program to exercise the basic concepts. It's nothing fancy especially compared to advanced stuff you normally talk about, ...
2
votes
1answer
40 views
PHP CSRF eliminator
There are three functions involved. The first Init is run before the content is parsed. The second is parseContent where the ...
3
votes
2answers
1k views
Encrypting and decrypting passwords in PHP
I am wanting to encrypt a password and decrypt a password using PHP. Is this a safe method?
...
7
votes
3answers
1k views
A Simple, One-Page PHP Admin Login (with prepared SQL statements)
First off, I want mention that this code works well. This is more of a request for suggestions...
We're attempting to program a one-page, recursive, token-based admin shell that is safe from ...
5
votes
1answer
128 views
Login Authentication
Please check this PHP script. This script is for Login authentication
Some pre-defined constants to indicate the login state
...
2
votes
1answer
2k views
Authentication system - AngularJS & Ionic Framework
I am building a small mobile app using ionic framework and angularJS. It will consume a Restful Web Service that requires authentication (User token). This means I need to keep my users token by ...
2
votes
1answer
397 views
PHP user account login with salt
I'm creating a user account login with PHP and Mysql which will be used by school teachers. To login there are 3 items required : school, username and password. This will allow for 2 of "MRSMITH" in ...
2
votes
0answers
46 views
Rewriting authentication controller using promises
I am in the process of refactoring some complex code that uses callbacks to instead use promises. I am trying to figure out if my proposed approaches make sense.
...
3
votes
1answer
116 views
A User class for visitors to register and log in to a site
I'm just looking for some feedback on my User class. The class is designed to handle users being able to register, login, and logout of the site. I'll be using it in conjunction with a forum I'm also ...
2
votes
1answer
49 views
Asynchronous login form handler
I have an app that user submit the log in form , when it sent the data to server app create a connection for its account.
In this connection i have an integer field named as state.
the state value is ...
2
votes
0answers
322 views
Authorization token from servlet filter stores user name
I'm having some difficulty with servlet and filter lifecycles. The intention here is to use the front controller pattern with a simple login; authentication is accomplished with the filter.
Am I ...
2
votes
0answers
38 views
Online store for pies - Part 2: User authentication
I'm building an angular application using AngularJS and AngularFire. As this is the second part of this "series" it might be a good idea to also check out part 1 to gain an even better overview of the ...
3
votes
1answer
81 views
Immunity of login/signup class to all types of attacks
I am going to use the following class which is very simple to use and get user info in pages:
...
0
votes
0answers
103 views
Secure and optimize Mongoose model component
Please help in deciding if this method for a Mongoose model component for user authentication can be made more secure and optimized, for efficiency and platform independence.
...
5
votes
1answer
1k views
MahApps login dialog in splash screen with Caliburn Micro
We are working on an application with a splash screen. After a few seconds/loading all the data, a login dialog appears inside the splash screen, asking you to enter username and password. Think of a ...
5
votes
1answer
3k views
Swift project using PHP web service
I was hoping for someone to review my current project, which was created in Swift and uses a PHP web service. I'm not worried about UI elements, as this is just a 'test' project, but I'm concerned ...
5
votes
0answers
142 views
Is this minimal Go cookie authentication system safe?
I'm working on a login system in Go (Golang). Previously, I was using Gorilla Sessions for this, but I wanted to see if I could reinvent the wheel and make it simpler.
Also, I don't need to store ...
2
votes
1answer
135 views
PHP login redirect security
I wish to redirect users to the login page if they attempt to visit a page which requires them to be logged in. After logging in, however, I want to redirect the user back to their original ...
8
votes
1answer
272 views
WCF Duplex service authentication
I have been thinking about a way to implement this and I am not sure that what I have done is correct, because it surely sounds kinda dirty to me.
Basically what I have is a WCF duplex service which ...
3
votes
1answer
484 views
Testable authentication handler for web API
I need to unit test my authentication handler. I don't really want do an assert against the text message returned by the handler. How could this be improved ?
...
5
votes
1answer
172 views
Security of login and register system
I need some help with my register and log in functions. I'm not sure if I have understood bcrypt correctly either. I'm doubting the security of it, what do you ...