Logged in different account

@admin @vijju123

Hey

This is Ryuk
Codechef username : [ryuk___](https://www.codechef.com/users/ryuk___)

Today I noticed something very strange.

I logged in first time in CodeChef discuss and somehow I logged in another account
username : [ryuk](https://www.codechef.com/users/ryuk).

I am logged in someone’s account, I am writing this post from his account I am not able to find my CodeChef discuss account which should be on this ryuk___ username.

Hi

Thank you for reporting this issue.
You are not logged into someone else’s account. It’s your account only.

As we have mentioned earlier, the new CodeChef discuss is based on Discourse. Now, there is a small piece of code which does not allows users to have ‘_’ (underscores) as the last character in their usernames.

def username_last_char_valid?
    return unless errors.empty?
    if username[-1] =~ /[^A-Za-z0-9]/
      self.errors << I18n.t(:'user.username.must_end_with_alphanumeric')
    end
end

So, ‘ryuk___’ became ‘ryuk’.

The user registered with ‘ryuk’ on CodeChef (ryuk | CodeChef User Profile for Sanket Farande | CodeChef) has never logged into discuss before.

If he tries to login in the future, he will be assigned ‘ryuk1’ as his username.

So, you are using your account only and not someone else’s account.

And, this is not how it should have been (the stripping of underscores from the end of usernames). We are working on finding a suitable fix for this issue.

2 Likes