[Twisted-Python] Using cred, how to prevent the user repeat-login?

Glyph glyph at twistedmatrix.com
Tue Apr 1 02:56:37 MDT 2014


On Mar 31, 2014, at 6:45 PM, yangyouxiu <yangyouxiu at gmail.com> wrote:

> In my Client-Server Application,I do not want two user login with the same login name.
>  
> For example, user1 logined with name "test1",then user2 try to login with "test1" too, the login of user2 should be denied. At now, my code could not achieve this goal,so what's the method.
> Thanks all!

This is more of a basic Python programming question than a Twisted question; however, I'm sure you'd find some people willing to help, except...:

> The following is server code:

When I run this code, nothing happens.  Which is not surprising, because it simply defines some classes.

Please consider attaching a http://www.sscce.org/ so that those of us who might help you out can start from a position where your whole program is working rather than having to guess about what the rest of your code looks like.

Thanks!

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140401/de3cb9af/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4124 bytes
Desc: not available
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140401/de3cb9af/attachment-0001.bin>


More information about the Twisted-Python mailing list