iPhone was factory rebooted by accident, how can I recover all of my information?

iphone was factory rebooted by accident

My daughter imported her brothers iPhone to her phone by accident. She did a factory reboot and now all information from the phone and a school project seems to be lost.

When she logs into her iCloud account all of the information is from her brothers phone. She is unable to get back into her phone because she is not able to get a verification code.

How can the information be recovered?
Re: iphone was factory rebooted by accident

Log out of iCloud with her brother's credentials and then log back in with her own. Alternatively, if she created iCloud and/or iTunes backup containing the data, she can restore the backup to her device and recover her data.

Original thread: https://forums.imore.com/threads/iphone-was-factory-rebooted-by-accident-how-can-i-recover-all-of-my-information.363911/