DATx02-16-14 / Hastings

A project evaluating Haste.App and the suitability of Haskell for the web.
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Don't allow multiple users with the same name. #61

Open Tejpbit opened 8 years ago

Tejpbit commented 8 years ago

This i probably easiest implemented when we have database. So first fix #47, Then fix #37, Then this issue should be an easy fix.

mattiasnilsen commented 8 years ago

This is fixed in #84

Kalior commented 8 years ago

I would like to debate this. I think it is possible to sign in with the same name as someone else but not change to a name that someone else has. Am I wrong?

mattiasnilsen commented 8 years ago

No that's correct but I think that's another problem that has more to do with the issue regarding user authentication. However we should probably prevent the same user from signing in twice since right now the same user will be given two different sessionIDs and thus be considered as two users in some cases and as one user in other.

Kalior commented 8 years ago

I agree that is also a problem. However, in the current system, multiple users with the same name are allowed, which is what this issue is about.

I would like to see an implementation that checks the value of the prompt if that user name is taken and in that case it prompts again.

mattiasnilsen commented 8 years ago

Fair enough, issue is reopened.