• Log in or sign up for an account here: https://www.sythe.org/login

Can anyone help?

Joined
Jul 31, 2007
Sythe Gold
0
Messages
64
Ok im trying to make a login system, i spent ages on what i have so far even though its only 4kb big LOL.


Anyway when i register a username and try to login, it says invalid even though i just registered it. Also i want more than 1 user to be able to register but i have no idea how to it (when u register it just declares the variables 'username' & 'password' accordingly). So if someone could help with that as well that would be really appreciated..


If you look at the source you will understand what i mean:D

I hope someone can help me, thx in advance


http://rapidshare.com/files/93869293/login_system.rar
 
Ok, it's against the rules to post Source, so you might want to remove that link. I'd help but I can't post source either, so just wait for a Mod or a VB Programmer to come in a help. Sorry I couldn't be anymore help. :(
 
EDIT: Urg, horrible system is horrible.
Give me a bit and i'll show ya how to make a REAL login system.
 
Ok im trying to make a login system, i spent ages on what i have so far even though its only 4kb big LOL.


Anyway when i register a username and try to login, it says invalid even though i just registered it. Also i want more than 1 user to be able to register but i have no idea how to it (when u register it just declares the variables 'username' & 'password' accordingly). So if someone could help with that as well that would be really appreciated..


If you look at the source you will understand what i mean:D

I hope someone can help me, thx in advance


http://rapidshare.com/files/93869293/login_system.rar

I whipped up a semi-basic login system for you. (its attached)
Jazz's will no doubt be more "secure" then what i just posted. So you might wanna wait until he posts also.
 

Attachments

Thx Covey it works great, although when i look at the code i get abit confused :p , although you added comments which helped me understand it a little more
 
Thx Covey it works great, although when i look at the code i get abit confused :p , although you added comments which helped me understand it a little more

Post the parts of the code that confuse you and i will try to explain it further.
 
i've turned the simple code I had into a major project, i'll release it later on with a small sample
 

ffs this site is being shit. I can't seem to post my reply (Everytime i paste something into the reply box the reply doesn't go through, but i can type normally and the reply works)
I've saved the post to a .txt file and i'll try again tommorrow.
 
Ok, it's against the rules to post Source, so you might want to remove that link. I'd help but I can't post source either, so just wait for a Mod or a VB Programmer to come in a help. Sorry I couldn't be anymore help. :(

Are you serious, i never knew it was against the rules to post :o
 
Ok but there is quite alot lol.

I dont understand the Len(Trim parts, i posted the parts i dont understand below :rolleyes:

Code:
    SaveSetting App.Title, strUser, "password", EncodeChrShift(strPassword)
    SaveSetting App.Title, strUser, "registered", "True"
Code:
    '// Ensure details have been entered
    If Len(Trim(txtUsername.Text)) = 0 Or Len(Trim(txtPassword.Text)) = 0 Then
Code:
Private Function DecodeChrShift(ByVal Text As String) As String
    'Code removed by Covey as its what caused the posting error.
End Function
This last piece makes absolutly no sense to me at all ^^

"SaveSetting" is the inbuilt function to save a string to the registry.
The "Trim()" function trims the space characters from the left and right side of the given string.
The "Len()" function counts how many characters are in the given string.
The peice of code that you posted above that you said "makes absolutely no sense to you", is a peice of code that wasn't written by me (as i said in my project code). But it basically decrypts the given string.

PS.
Where i use:
Code:
If Len(Trim(txtUsername.Text)) = 0 Or Len(Trim(txtPassword.Text)) = 0 Then
is the pretty much the same as doing:
Code:
If txtUsername.Text = "" or txtPassword.Text = "" Then

But using "Len()" uses less resources on the computer and is also faster.
 
duelarena.gg
Back
Top