Here's how the Didache ( probably a composite document and probably quite early) suggested that one could distinguish between a true and false prophet...
A false prophet could be distinguished by the extent to which he followed the 'way of life'. Here's the way of life.
APOSTOLIC FATHERS (trans. and ed., J. B. Lightfoot)
1:1 There are two ways, one of life and one of death, and there is a great difference between the two ways.
1:2 {The way of life} is this.
1:3 First of all, {thou shalt love the God} that made thee;
1:4 secondly, {thy neighbour as thyself.}
1:5 {And all things whatsoever thou wouldest not have befal thyself neither do thou unto another.}
1:6 Now of these words the doctrine is this.
1:7 {Bless them that curse you, and pray for} your enemies and fast for {them that persecute you;
1:8 for what thank is it, if ye love them that love you? Do not even the Gentiles the same? But do ye love them that hate you,} and ye shall not have an enemy.
1:9 Abstain thou from fleshly and bodily lusts.
1:10 {If any man give thee a blow on thy right cheek, turn to him the other also,} and thou shalt be perfect;
1:11 {if a man impress thee to go with him, one mile, go with him twain;
1:12 if a man take away thy cloak, give him thy coat also;
1:13 if a man take away from thee that which is thine own, ask it not back,} for neither art thou able.
1:14 {To every man that asketh of thee give, and ask not back;}
1:15 for the Father desireth that gifts be given to all from His own bounties.
1:16 Blessed is he that giveth according to the commandment;
1:17 for he is guiltless.
1:18 Woe to him that receiveth;
1:19 for, if a man receiveth having need, he is guiltless;
1:20 but he that hath no need shall give satisfaction why and wherefore he received;
1:21 and being put in confinement he shall be examined concerning the deeds that he hath done, and {he shall not come out thence until he hath given back the last farthing.}
1:22 Yea, as touching this also it is said;
1:23 {Let thine alms sweat into thine hands, until thou shalt have learnt to whom to give.}
2:1 And this is the second commandment of the teaching.
2:2 {Thou shalt do no murder, thou shalt not commit adultery,} thou shalt not corrupt boys, thou shalt not commit fornication, {thou shalt not steal,} thou shalt not deal in magic, thou shalt do no sorcery, thou shalt not murder a child by abortion nor kill them when born, {thou shalt not covet thy neighbour's goods, thou shalt not perjure thyself, thou shalt not bear false witness,} thou shalt not speak evil, thou shalt not cherish a grudge, thou shalt not be double-minded nor double-tongued;
2:3 for the double tongue is a snare of death.
2:4 Thy word shall not be false or empty, but fulfilled by action.
2:5 Thou shalt not be avaricious nor a plunderer nor a hypocrite nor ill-tempered nor proud.
2:6 Thou shalt not entertain an evil design against thy neighbour.
2:7 {Thou shalt not hate} any man, {but some thou shalt reprove,} and for others thou shalt pray, {and others thou shalt love} more than thy life.
3:1 My child, flee from every evil and everything that resembleth it.
3:2 Be not angry, for anger leadeth to murder, nor jealous nor contentious nor wrathful;
3:3 for of all these things murders are engendered.
3:4 My child, be not lustful, for lust leadeth to fornication, neither foul-speaking neither with uplifted eyes;
3:5 for of all these things adulteries are engendered.
3:6 My child, {be no dealer in omens,} since it leads to idolatry, nor an enchanter nor an astrologer nor a magician, neither be willing to look at them;
3:7 for from all these things idolatry is engendered.
3:8 My child, be not a liar, since lying leads to theft, neither avaricious neither vainglorious;
3:9 for from all these things thefts are engendered.
3:10 My child, be not a murmurer, since it leadeth to blasphemy, neither self-willed neither a thinker of evil thoughts;
3:11 for from all these things blasphemies are engendered.
3:12 But be meek, since {the meek shall inherit the earth.}
3:13 Be long-suffering and pitiful and guileless and {quiet} and kindly {and} always {fearing the words} which thou hast heard.
3:14 Thou shalt not exalt thyself, neither shalt thou admit boldness into thy soul.
3:15 Thy soul shall not cleave together with the lofty, but with the righteous and humble shalt thou walk.
3:16 The accidents that befal thee thou shalt receive as good, knowing that nothing is done without God.
4:1 My child, {thou shalt remember him that speaketh unto thee the word of God} night and day, and shalt honour him as the Lord;
4:2 for whencesoever the Lordship speaketh, there is the Lord.
4:3 Moreover thou shalt seek out day by day the persons of the saints, that thou mayest find rest in their words.
4:4 Thou shalt not make a schism, but thou shalt pacify them that contend;
4:5 thou shalt judge righteously, thou shalt not make a difference in a person to reprove him for transgressions.
4:6 Thou shalt not doubt whether a thing shall be or not be.
4:7 {Be not thou found holding out thy hands to receive, but drawing them in as to giving.}
4:8 If thou hast ought passing through thy hands, thou shalt give a ransom for thy sins.
4:9 Thou shalt not hesitate to give, neither shalt thou murmur when giving;
4:10 for thou shalt know who is the good paymaster of thy reward.
4:11 Thou shalt not turn away from him that is in want, but shalt make thy brother partaker in all things, and shalt not say {that anything is thine own.}
4:12 For if ye are fellow-partakers in that which is imperishable, how much rather in the things which are perishable? Thou shalt not withhold thy hand from thy son or from thy daughter, but from their youth thou shalt teach them the fear of God.
4:13 Thou shalt not command thy bondservant or thine handmaid in thy bitterness, who trust in the same God as thyself, lest haply they should cease to fear the God who is over both of you;
4:14 for He cometh, not to call men with respect of persons, but He cometh to those whom the Spirit hath prepared.
4:15 But ye, servants, shall be subject unto your masters, as to a type of God, in shame and fear.
®LA1¯4:16 Thou shalt hate all hypocrisy, and everything that is not pleasing to the Lord.
4:17 Thou shalt never forsake the commandments of the Lord;
4:18 but shalt keep those things which thou hast received, neither adding to them nor taking away from them.
4:19 In church thou shalt confess thy transgressions, and shalt not betake thyself to prayer with an evil conscience.
4:20 This is the way of life.
The question is, how well would Joseph Smith (and Brigham Young for that matter) come out using the teachings of the 'way of life' in the Didache Community?