ONLYOFFICE / Docker-CommunityServer

Collaborative system for managing documents, projects, customer relations and emails in one place
MIT License
499 stars 181 forks source link

how i can reset password if my mail-server is not working ? #39

Open infosec-o4it opened 6 years ago

infosec-o4it commented 6 years ago

hello, I upgrade from onlyoffice community edition from 9 to 9.5, but I don't restore the mail-server data in my docker container, only from "community" edition, so I can't reset the password because the email is never sent.

what can i do to reset the password ?

infosec-o4it commented 6 years ago

so, I think, I make some progress,

in the repository in CommunityServer/common/ASC.Common/Tests/Security/Cryptography/Hasher_Test.cs I find an equal function to hash the passwords and insert in the database to reset the passwords.

            Assert.AreEqual(
              Convert.ToBase64String(SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes(str))),
              Hasher.Base64Hash(str) //DEFAULT
);

right now my last problem it's make work the mail server from docker image...