Giter Club home page Giter Club logo

Comments (5)

fletcherm avatar fletcherm commented on June 10, 2024

@dlightman311 Do you know what is supposed to happen here on real MBBS? Does it truncate the userid to 30 characters? Reject with an error message? Something else?

from mbbsemu.

enusbaum avatar enusbaum commented on June 10, 2024

The length of USERID in the USERACCOUNT struct is char[30], so 29 character + null terminator

from mbbsemu.

enusbaum avatar enusbaum commented on June 10, 2024

The issue is when logging it, it builds the UserAccount struct, and assigns the entered username to the struct value UserAccount.username

https://github.com/enusbaum/MBBSEmu/blob/master/MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs#L194

We need to add additional validation to this routine so that it doesn't allow input of usernames longer than acceptable.

Probably to signup as well.

from mbbsemu.

dlightman311 avatar dlightman311 commented on June 10, 2024

At the login prompt real MBBS allows 128 chars to be entered and disconnects the telnet session at 129:

image

This could be MajorTCP disconnecting the telnet session rather than MBBS. At a local login session I can enter up to 127 chars and input stops displaying:

image

At the new user signup username question real MBBS presents a field of 30 chars, allows the user to enter in up to 29 and stops displaying input:

image

from mbbsemu.

enusbaum avatar enusbaum commented on June 10, 2024

Closed with PR #79

from mbbsemu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.