Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be.
3
votes
2answers
57 views
Laravel 5.4: Authentication System
I have recently coded my own authentication system and wondered if there was any way I could make it better? I coded it with Laravel 5.4. getView is called on ...
3
votes
0answers
84 views
Thousands of GET requests for brute-force authentication attempts
I am applying a brute force to discover 123456 passwords in a given site (I am not going to say which one, of course).
The html gets a ...
15
votes
6answers
2k views
Login form C# SQL
Basically this is my first login form.
I am using SQL and C# WinForms.
I made user roles such as "Admin" and others and the user is taken to a specific WinForms, according to his appointed role (...
2
votes
1answer
61 views
PHP login page using prepared statements [closed]
I am new to the concept of prepared statement and i am trying to adjust my "user login" function to be a prepared statement. The part i am really struggling with is the fact i have multiple SQL ...
2
votes
1answer
61 views
Rendering content conditional on the authentication state of the user
During a code review the following approach of delivering content conditionally dependent upon the state of the user was rejected as adverse to performance due to its multiple use of RenderAction, and ...
2
votes
0answers
53 views
Testing multiple logins using Selenium listed in a property file
Excuse please review my code. I am working in automation testing. I did a automation testing for my login page. I am using selenium with page object pattern. I wrote here my code. I am using java ...
-6
votes
1answer
72 views
Secure user authentication on PHP [closed]
I'm trying to figure out the best way to manage user authentication.
At the moment I'm using this way
...
-1
votes
0answers
19 views
How secure is this user authentication PHP? [duplicate]
I'm trying to figure out how secure is this user authentication I'm using?
Php Log in validation named Entrar.php
...
4
votes
1answer
136 views
Laravel - Revised Authentication Controller
I'm developing a Social Engineering Awareness Training Application. This is the focus of my thesis for my undergraduate degree. This will be a multi-part review request, however, if you want to see ...
0
votes
1answer
64 views
JWT Authentication for REST API
Here is my code to implement authentication in a Node/Express/Sequelize project. This is my first time using JWT and I would appreciate any help!
...
5
votes
1answer
76 views
Laravel - Authentication Controller
I'm developing a Social Engineering Awareness Training Application. This is the focus of my thesis for my undergraduate degree. This will be a multi-part review request, however, if you want to see ...
2
votes
1answer
54 views
Making a “remember login” function
I'm trying to make a safe "remember me / auto login" function on my site and as I'm just a hobby programmer I would like someone professional to take a look at my code this far. This site will ...
4
votes
1answer
96 views
Login program in Python
I wrote this login program as part of my project for school. Should I use my implementation of a login program, or is there some standardized patterns of login programs, like the ones in encryption ...
2
votes
1answer
147 views
PHP Login and Registration system using BCrypt
I'm new to web development and this is my first website. I was wondering if my login and registration system is secure. I was also wondering how to handle viewing parts of a webpage when the user isn'...
1
vote
0answers
37 views
Authenticating voting
My aim is to prevent authenticated users from voting more than once. I am using angularfire2. The code gives me the expected behavior and I was wondering the better way of doing this. The ...
5
votes
1answer
57 views
Filtering ASP.NET membership roles without the default attributes
I am building an application, and I needed an attribute similar to AuthorizeAttribute, supporting Roles but not using the ...
1
vote
1answer
90 views
Hardcoded PHP Login
I am reviewing previous undocumented php work from a predecessor on these two scripts to manage access to an administrative dashboard, but I'm not sure about vulnerabilities and other things that ...
3
votes
4answers
482 views
Prompting user for connection parameters to SQL Server
I try to avoid keeping passwords etc. in memory or in plain text anywhere. But I am on a huge time crunch and this will only be used internally this week then probably won't get touched again. I just ...
4
votes
1answer
96 views
Handling signout flow
There is backend which connects with IdentityServer using WsFederation. The backend is .NET Core project where there is a ...
1
vote
1answer
142 views
User Authentication PHP script
few days ago i made small PHP Authentication API with all basic functionalities (log in, log out, registration, getting authenticated member) and i got suggestions that i should use prepared ...
4
votes
1answer
99 views
PHP Authentication API
I created small simple PHP Authentication API. I have a couple of scripts that I use for session, authentication and registration. Since I'm not an experienced backend and PHP developer, I wanted ...
7
votes
1answer
83 views
Reduce amount of calls to database for authentication
I'm currently having a bit of code, which I just know can be improved a lot. I am just blind to it. All of my code looks quite neat to me, except these parts... The login + authentication process is ...
3
votes
1answer
47 views
Android Authentication Activity with Fragments
I have an Activity called AuthActivity and I would like all of my authentication Fragments to be in this ...
3
votes
0answers
104 views
Validating HMAC-SHA256 signature in Python
I am trying to implement HMAC-SHA256 authentication into my Python RESTful API project. I am using Python Eve (built on top of Flask), started with an simplified HMAC-SHA1 example.
My application is ...
4
votes
1answer
48 views
Login System In Batch
Here I made a program in batch that detects all files with the .user extension. Then it allows the user to pick a username by entering the number associated with that username.
The code is messy, so ...
1
vote
1answer
68 views
Checking for required text fields for login
I wrote this script and it's working quite well however I think there's too much if else statements on it. How could I change them for a switch statement?
...
1
vote
2answers
81 views
Checking an authentication decision in a JSON response
I've been working on this login screen logic.
It checks for the parameters in the JSON response to decide which action to follow. It works but it's kinda ugly and verbose. Any suggestions to ...
4
votes
2answers
147 views
PHP OOP Login Script
I'm new to both PHP and OOP and would like some constructive feedback on a class I made.
I have a "main account" login system already setup and working; when the user logs in they're presented with a ...
0
votes
1answer
82 views
Secure logout PHP code with cookies
I have the following PHP logout script and I would like to know the loopholes present in it. How can I improve it?
...
1
vote
2answers
364 views
Login page with Selenium webdriver
I am automating a login page. I am using the page object design pattern Selenium with Java. What should I improve on in my code?
...
1
vote
1answer
112 views
Secure login and authentication in PHP
This seems to work for me, but I want to make it more secure. I want to see how far I can go without pre-built packages/bundles, so please don't suggest any.
How secure is this? What are some steps I ...
3
votes
1answer
50 views
OpenVPN Authentication Script
I wrote a shell script to authenticate users connecting to an OpenVPN server. When a user attempts to connect, OpenVPN executes the script with the username and password variables sends.
The script ...
3
votes
3answers
593 views
PHP-MySQL sign-in and sign-up project
I have done my first PHP-MySQL project with MySQLi connection. Please review this and inform me about security and performance issues.
dbconnect.php
...
0
votes
2answers
137 views
Making a secure login in PHP
I have made this PHP login page. As far as I know, this is secure enough to avoid attacks and injection.
This script:
Notifies me with an e-mail when someone logs in or fails to login
Only one user ...
3
votes
4answers
517 views
User registration and authentication in PHP and PDO
Please criticize as thoroughly as possible, even the smallest thing will be very useful for me.
I'm trying to create a safe and easy system to change for future projects. I am aware that it should ...
6
votes
2answers
121 views
Authenticating web request to get the xml data from it
I wrote a method early of our development last year about getting the content of a webrequest where it contains an xml data that we need to process and insert to ...
6
votes
2answers
148 views
Powershell cmdlet authenticating to Aerohive API
After dipping my toes in PowerShell for over a year i think it is time for creating a real cmdlet. My first mission was creating a regular PS script to take in a .csv and create a wifi account using ...
2
votes
0answers
85 views
Checking authentication status by looking for a cookie
I'm an Android newbie. I have this function in my code:
...
8
votes
1answer
194 views
React Native - Combining login and signup pages into one component
I have been building an app in React Native and have decided that since my Login and Signup components share much of the same ...
3
votes
1answer
58 views
Elixir / Phoenix login controller, allowing multiple attempts
I have a login method in my controller. I would like to get rid of the imperative "thinking" and write something more functional.
...
3
votes
2answers
73 views
PHP Authentication Form
Drafted this up today out of the need for a very simple php based login form to protect an html page.
The app is simply included the top of index.html like this:
<...
4
votes
2answers
821 views
LDAP Login Script
This is my first time ever having code peer reviewed! This is just the main function I'm concerned about.
Edit
Apologies for the initial vagueness of my question, this is the "login" part of my ...
4
votes
1answer
100 views
Very basic PHP session handling
I’ve got my first real PHP web application up and running. It is working as expected, but being my first time, I’m sure there is plenty of room for improvement.
Right now, there is one particular ...
1
vote
0answers
132 views
Spring controller for login using Facebook or email
I've got a spring controller class which handles the user logins.
I've got two endpoints:
/user/facebook
/user/email
You can ...
2
votes
2answers
175 views
Simple login page
Could anyone tell me if this code is well written and if it has bugs / vulnerabilities?
class.user.php:
...
2
votes
4answers
174 views
PHP mysqli code for login form
Can you check my code if I wrote like a professional?
connection page.
form sign page.
plan page.
log out page.
First I create the database and tables, then the connection file, then the form sign ...
3
votes
1answer
86 views
PHP Login/cookie authentication
I have an authetication api for an intranet site but I'm a little worried that my design of the authentication is bad and unsafe.
Below is the basic part of the authetication process and I hope I can ...
2
votes
1answer
153 views
Authentication in JSF
I've decided to implement my own custom authentication and authorisation in JSF. I am using Java's BCrypt to check the users' passwords.
The view side of things I can handle; I'm just implementing <...
1
vote
1answer
181 views
Cookie authentication
I have to write a little social network for a case study at university. I have done some simple webapps before but nothing that required authentication, login and so on. So I wrote this little ...
3
votes
1answer
579 views
Logging in to Android application using Firebase
I currently have an app that uses Firebase for logging users in and I would like to know if I can make this code any better. I currently have 4 files:
auth/models/User.java
auth/BaseActivity....